org.alfresco.repo.content.cleanup
Class ContentStoreCleanerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.content.cleanup.ContentStoreCleanerTest
All Implemented Interfaces:
junit.framework.Test

public class ContentStoreCleanerTest
extends junit.framework.TestCase

See Also:
ContentStoreCleaner

Constructor Summary
ContentStoreCleanerTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testEagerCleanupDereferencing()
          Create ContentData set it on a Node, delete the Node, then set the ContentData on a new node and check that the content is preserved during eager cleanup.
 void testEagerCleanupOnCommit()
           
 void testImmediateRemoval()
           
 void testProtectedRemoval()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

ContentStoreCleanerTest

public ContentStoreCleanerTest()
Method Detail

setUp

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

tearDown

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

testEagerCleanupOnCommit

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

testEagerCleanupDereferencing

public void testEagerCleanupDereferencing()
                                   throws java.lang.Exception
Create ContentData set it on a Node, delete the Node, then set the ContentData on a new node and check that the content is preserved during eager cleanup.

Throws:
java.lang.Exception

testImmediateRemoval

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

testProtectedRemoval

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


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