org.apache.jcs.auxiliary.disk.indexed
Class IndexedDiskCacheOptimizationUnitTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheOptimizationUnitTest
All Implemented Interfaces:
junit.framework.Test

public class IndexedDiskCacheOptimizationUnitTest
extends junit.framework.TestCase

Tests for the optimization routine.

Author:
Aaron Smuts

Constructor Summary
IndexedDiskCacheOptimizationUnitTest()
           
 
Method Summary
 void testBasicOptimization()
          Set the optimize at remove count to 10.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexedDiskCacheOptimizationUnitTest

public IndexedDiskCacheOptimizationUnitTest()
Method Detail

testBasicOptimization

public void testBasicOptimization()
                           throws Exception
Set the optimize at remove count to 10. Add 20. Check the file size. Remove 10. Check the times optimized. Check the file size.

Throws:
Exception


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.