org.apache.jcs.auxiliary.remote
Class RemoteCacheNoWaitUnitTest

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

public class RemoteCacheNoWaitUnitTest
extends junit.framework.TestCase

Unit tests for the remote cache no wait. The no wait manages a queue on top of the client.

Author:
Aaron Smuts

Constructor Summary
RemoteCacheNoWaitUnitTest()
           
 
Method Summary
 void testFixCache()
          Simply verify that the serviced supplied to fix is passed onto the client.
 void testGet()
          Simply verify that the client get is called from the no wait.
 void testGetMultiple()
          Simply verify that the client getMultiple is called from the no wait.
 void testGetStats()
          Simply verify that the client status is returned in the stats.
 void testGetStatus_error()
          Simply verify that we get a status of error if the cache is in error..
 void testRemove()
          Simply verify that the client gets updated via the no wait.
 void testUpdate()
          Simply verify that the client gets updated via the no wait.
 
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

RemoteCacheNoWaitUnitTest

public RemoteCacheNoWaitUnitTest()
Method Detail

testUpdate

public void testUpdate()
                throws Exception
Simply verify that the client gets updated via the no wait.

Throws:
Exception

testGet

public void testGet()
             throws Exception
Simply verify that the client get is called from the no wait.

Throws:
Exception

testGetMultiple

public void testGetMultiple()
                     throws Exception
Simply verify that the client getMultiple is called from the no wait.

Throws:
Exception

testRemove

public void testRemove()
                throws Exception
Simply verify that the client gets updated via the no wait.

Throws:
Exception

testGetStats

public void testGetStats()
                  throws Exception
Simply verify that the client status is returned in the stats.

Throws:
Exception

testGetStatus_error

public void testGetStatus_error()
                         throws Exception
Simply verify that we get a status of error if the cache is in error..

Throws:
Exception

testFixCache

public void testFixCache()
                  throws Exception
Simply verify that the serviced supplied to fix is passed onto the client. Verify that the original event queue is destroyed. A new event queue willbe plugged in on fix.

Throws:
Exception


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