org.apache.jcs.auxiliary.remote
Class RemoteCacheListenerUnitTest

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

public class RemoteCacheListenerUnitTest
extends junit.framework.TestCase

Tests for the remote cache listener.

Author:
Aaron Smuts

Constructor Summary
RemoteCacheListenerUnitTest()
           
 
Method Summary
 void testUpdate_PutOnPut()
          Create a RemoteCacheListener with a mock cache manager.
 void testUpdate_RemoveOnPut()
          Create a RemoteCacheListener with a mock cache manager.
 
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

RemoteCacheListenerUnitTest

public RemoteCacheListenerUnitTest()
Method Detail

testUpdate_PutOnPut

public void testUpdate_PutOnPut()
                         throws Exception
Create a RemoteCacheListener with a mock cache manager. Set remove on put to false. Create a serialized element. Call put on the listener. Verify that the deserialized element is in the cache.

Throws:
Exception

testUpdate_RemoveOnPut

public void testUpdate_RemoveOnPut()
                            throws Exception
Create a RemoteCacheListener with a mock cache manager. Set remove on put to true. Create a serialized element. Call put on the listener. Verify that the deserialized element is not in the cache.

Throws:
Exception


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