org.alfresco.repo.domain.contentdata
Class ContentDataDAOTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.domain.contentdata.ContentDataDAOTest
All Implemented Interfaces:
junit.framework.Test

public class ContentDataDAOTest
extends junit.framework.TestCase

Since:
3.2
See Also:
ContentDataDAO

Constructor Summary
ContentDataDAOTest()
           
 
Method Summary
 void setUp()
           
 void testContentUrl_FetchingOrphansNoLimit()
           
 void testContentUrl_FetchingOrphansWithLimit()
           
 void testCreateContentDataNulls()
          Check that the ContentData is decoded and persisted correctly.
 void testCreateContentDataSimple()
          Check that the ContentData is decoded and persisted correctly.
 void testCreateSpeedIndividualTxns()
           
 void testCreateSpeedSingleTxn()
           
 void testDelete()
           
 void testEnsureCaseSensitiveStorage()
          Ensure that upper and lowercase URLs don't clash
 void testGetWithInvalidId()
           
 void testReinstate_ALF3867()
          Check that orphaned content can be re-instated.
 void testUpdate()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentDataDAOTest

public ContentDataDAOTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testGetWithInvalidId

public void testGetWithInvalidId()

testCreateContentDataSimple

public void testCreateContentDataSimple()
                                 throws java.lang.Exception
Check that the ContentData is decoded and persisted correctly.

Throws:
java.lang.Exception

testCreateContentDataNulls

public void testCreateContentDataNulls()
                                throws java.lang.Exception
Check that the ContentData is decoded and persisted correctly.

Throws:
java.lang.Exception

testEnsureCaseSensitiveStorage

public void testEnsureCaseSensitiveStorage()
                                    throws java.lang.Exception
Ensure that upper and lowercase URLs don't clash

Throws:
java.lang.Exception

testUpdate

public void testUpdate()
                throws java.lang.Exception
Throws:
java.lang.Exception

testDelete

public void testDelete()
                throws java.lang.Exception
Throws:
java.lang.Exception

testReinstate_ALF3867

public void testReinstate_ALF3867()
Check that orphaned content can be re-instated.


testContentUrl_FetchingOrphansNoLimit

public void testContentUrl_FetchingOrphansNoLimit()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testContentUrl_FetchingOrphansWithLimit

public void testContentUrl_FetchingOrphansWithLimit()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

testCreateSpeedIndividualTxns

public void testCreateSpeedIndividualTxns()

testCreateSpeedSingleTxn

public void testCreateSpeedSingleTxn()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.