org.apache.jcs.engine.control
Class CompositeCacheUnitTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jcs.engine.control.CompositeCacheUnitTest
All Implemented Interfaces:
junit.framework.Test

public class CompositeCacheUnitTest
extends junit.framework.TestCase

Tests that directly engage the composite cache.

Author:
Aaron Smuts

Constructor Summary
CompositeCacheUnitTest()
           
 
Method Summary
 void testGetMatching_Normal()
          Verify we can get some matching elements..
 void testGetMatching_NotOnDisk()
          Verify we try a disk aux on a getMatching call.
 void testGetMatching_NotOnRemote()
          Verify we try a remote aux on a getMatching call.
 void testShutdownMemoryFlush_noDisk()
          Verify that the freeMemoryElements method on the memory cache is NOT called on shutdown if there is NOT a disk cache.
 void testShutdownMemoryFlush()
          Verify that the freeMemoryElements method on the memory cache is called on shutdown if there is a disk cache.
 
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

CompositeCacheUnitTest

public CompositeCacheUnitTest()
Method Detail

testShutdownMemoryFlush

public void testShutdownMemoryFlush()
                             throws IOException
Verify that the freeMemoryElements method on the memory cache is called on shutdown if there is a disk cache.

Throws:
IOException

testShutdownMemoryFlush_noDisk

public void testShutdownMemoryFlush_noDisk()
                                    throws IOException
Verify that the freeMemoryElements method on the memory cache is NOT called on shutdown if there is NOT a disk cache.

Throws:
IOException

testGetMatching_Normal

public void testGetMatching_Normal()
                            throws IOException
Verify we can get some matching elements..

Throws:
IOException

testGetMatching_NotOnDisk

public void testGetMatching_NotOnDisk()
                               throws IOException
Verify we try a disk aux on a getMatching call.

Throws:
IOException

testGetMatching_NotOnRemote

public void testGetMatching_NotOnRemote()
                                 throws IOException
Verify we try a remote aux on a getMatching call.

Throws:
IOException


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