org.apache.jcs.auxiliary.disk
Class AbstractDiskCacheUnitTest

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

public class AbstractDiskCacheUnitTest
extends junit.framework.TestCase

Tests for the abstract disk cache. It's largely tested by actual instances.


Nested Class Summary
protected static class AbstractDiskCacheUnitTest.AbstractDiskCacheTestInstance<K extends Serializable,V extends Serializable>
          Concrete, testable instance.
 
Constructor Summary
AbstractDiskCacheUnitTest()
           
 
Method Summary
 void testDispose()
          Verify that alive is set to false..
 void testRemoveAll_allowed()
          Verify that removeAll is allowed.
 void testRemoveAll_notAllowed()
          Verify that removeAll is prohibited.
 void testUpdateGet_allowed()
          Verify that update and get work.
 
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

AbstractDiskCacheUnitTest

public AbstractDiskCacheUnitTest()
Method Detail

testUpdateGet_allowed

public void testUpdateGet_allowed()
                           throws IOException
Verify that update and get work.

Throws:
IOException

testDispose

public void testDispose()
                 throws IOException
Verify that alive is set to false..

Throws:
IOException

testRemoveAll_notAllowed

public void testRemoveAll_notAllowed()
                              throws IOException
Verify that removeAll is prohibited.

Throws:
IOException

testRemoveAll_allowed

public void testRemoveAll_allowed()
                           throws IOException
Verify that removeAll is allowed.

Throws:
IOException


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