org.alfresco.repo.content.caching.quota
Class StandardQuotaStrategyMockTest

java.lang.Object
  extended by org.alfresco.repo.content.caching.quota.StandardQuotaStrategyMockTest

public class StandardQuotaStrategyMockTest
extends java.lang.Object

Tests for the StandardQuotaStrategy.


Constructor Summary
StandardQuotaStrategyMockTest()
           
 
Method Summary
 void afterFileWrittenExceedingMaxFileSizeFileIsDeleted()
           
 void afterWritingCacheFileDiskUsageUpdatedCorrectly()
           
 void attemptToWriteFileExceedingMaxFileSizeIsVetoed()
           
 void canGetMaxFileSizeBytes()
           
 void setUp()
           
 void testCanSetMaxUsageInMB()
           
 void testCurrentUsageMB()
           
 void testPanicThresholdForBeforeWritingCacheFile()
           
 void testThresholdsAfterWritingCacheFile()
           
 void testThresholdsBeforeWritingCacheFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardQuotaStrategyMockTest

public StandardQuotaStrategyMockTest()
Method Detail

setUp

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

testCanSetMaxUsageInMB

public void testCanSetMaxUsageInMB()
                            throws java.lang.IllegalAccessException
Throws:
java.lang.IllegalAccessException

testPanicThresholdForBeforeWritingCacheFile

public void testPanicThresholdForBeforeWritingCacheFile()

afterWritingCacheFileDiskUsageUpdatedCorrectly

public void afterWritingCacheFileDiskUsageUpdatedCorrectly()

testThresholdsAfterWritingCacheFile

public void testThresholdsAfterWritingCacheFile()

testThresholdsBeforeWritingCacheFile

public void testThresholdsBeforeWritingCacheFile()

canGetMaxFileSizeBytes

public void canGetMaxFileSizeBytes()

attemptToWriteFileExceedingMaxFileSizeIsVetoed

public void attemptToWriteFileExceedingMaxFileSizeIsVetoed()

afterFileWrittenExceedingMaxFileSizeFileIsDeleted

public void afterFileWrittenExceedingMaxFileSizeFileIsDeleted()

testCurrentUsageMB

public void testCurrentUsageMB()


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