org.alfresco.repo.avm
Class PurgeTestP

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.avm.AVMServiceTestBase
              extended by org.alfresco.repo.avm.PurgeTestP
All Implemented Interfaces:
junit.framework.Test

public class PurgeTestP
extends AVMServiceTestBase

Test the purge thread.


Field Summary
 
Fields inherited from class org.alfresco.repo.avm.AVMServiceTestBase
fAuthenticationComponent, fAuthService, fContext, fIndexerAndSearcher, fIndexingInterceptor, fLockingService, fReaper, fRetryingTransactionHelper, fService, fSyncService, fTransactionService
 
Constructor Summary
PurgeTestP()
           
 
Method Summary
 void setUp()
          Setup for AVM tests.
 void testPurgeOlderVersion()
          Test purging a version that's not the latest.
 void testPurgeStore()
          Test purging an entire store.
 void testPurgeVersion()
          Test purging a version.
 void testRemoveNodes()
           
 
Methods inherited from class org.alfresco.repo.avm.AVMServiceTestBase
checkHistory, recursiveContents, recursiveList, recursiveList, runQueriesAgainstBasicTree, runQueriesAgainstBasicTreeWithAOnly, setupBasicTree, setupBasicTree0, tearDown, testSetup
 
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

PurgeTestP

public PurgeTestP()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Description copied from class: AVMServiceTestBase
Setup for AVM tests. Note that we set the polling interval for the reaper to 4 seconds so that tests will finish reasonably quickly.

Overrides:
setUp in class AVMServiceTestBase
Throws:
java.lang.Exception

testRemoveNodes

public void testRemoveNodes()
                     throws java.lang.Throwable
Throws:
java.lang.Throwable

testPurgeVersion

public void testPurgeVersion()
                      throws java.lang.Throwable
Test purging a version.

Throws:
java.lang.Throwable

testPurgeOlderVersion

public void testPurgeOlderVersion()
                           throws java.lang.Throwable
Test purging a version that's not the latest.

Throws:
java.lang.Throwable

testPurgeStore

public void testPurgeStore()
                    throws java.lang.Throwable
Test purging an entire store.

Throws:
java.lang.Throwable


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