org.alfresco.repo.content.caching.cleanup
Class CachedContentCleanupJobTest

java.lang.Object
  extended by org.alfresco.repo.content.caching.cleanup.CachedContentCleanupJobTest

public class CachedContentCleanupJobTest
extends java.lang.Object

Tests for the CachedContentCleanupJob


Constructor Summary
CachedContentCleanupJobTest()
           
 
Method Summary
 void aggressiveCleanReclaimsTargetSpace()
           
static void beforeClass()
           
 void emptyParentDirectoriesAreDeleted()
           
 void filesInCacheAreNotDeleted()
           
 void filesNewerThanMinFileAgeMillisAreNotDeleted()
           
 void filesNotInCacheAreDeleted()
           
 void markedFilesHaveDeletionDeferredUntilCorrectPassOfCleaner()
           
 void setUp()
           
 void standardCleanAfterAggressiveFinished()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedContentCleanupJobTest

public CachedContentCleanupJobTest()
Method Detail

beforeClass

public static void beforeClass()

setUp

public void setUp()
           throws java.io.IOException
Throws:
java.io.IOException

filesNotInCacheAreDeleted

public void filesNotInCacheAreDeleted()
                               throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

filesNewerThanMinFileAgeMillisAreNotDeleted

public void filesNewerThanMinFileAgeMillisAreNotDeleted()
                                                 throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

aggressiveCleanReclaimsTargetSpace

public void aggressiveCleanReclaimsTargetSpace()
                                        throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

standardCleanAfterAggressiveFinished

public void standardCleanAfterAggressiveFinished()
                                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

emptyParentDirectoriesAreDeleted

public void emptyParentDirectoriesAreDeleted()
                                      throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

markedFilesHaveDeletionDeferredUntilCorrectPassOfCleaner

public void markedFilesHaveDeletionDeferredUntilCorrectPassOfCleaner()

filesInCacheAreNotDeleted

public void filesInCacheAreNotDeleted()
                               throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException


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