|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.jcs.auxiliary.remote.server.BasicRemoteCacheClientServerUnitTest
public class BasicRemoteCacheClientServerUnitTest
These tests startup the remote server and make requests to it.
| Constructor Summary | |
|---|---|
BasicRemoteCacheClientServerUnitTest()
Starts the server. |
|
| Method Summary | |
|---|---|
void |
testPutaMultipleAndListen()
Register a listener with the server. |
void |
testPutAndListen()
Register a listener with the server. |
void |
testPutRemove()
Verify that we can remove an item via the remote server. |
void |
testSinglePut()
Verify that we can start the remote cache server. |
| 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 |
|---|
public BasicRemoteCacheClientServerUnitTest()
| Method Detail |
|---|
public void testSinglePut()
throws Exception
The remote server uses the real JCS. We can verify that items are added to JCS behind the server by calling get. We cannot access it directly via JCS since it is serialized.
This test uses a mock injected client to test a normal server.
Exception
public void testPutRemove()
throws Exception
Exception
public void testPutAndListen()
throws Exception
Exception
public void testPutaMultipleAndListen()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||