commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1584486 - /commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
Date Fri, 04 Apr 2014 00:57:48 GMT
Author: sebb
Date: Fri Apr  4 00:57:48 2014
New Revision: 1584486

URL: http://svn.apache.org/r1584486
Log:
Check whether Cache is working

Modified:
    commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java

Modified: commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java?rev=1584486&r1=1584485&r2=1584486&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
(original)
+++ commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
Fri Apr  4 00:57:48 2014
@@ -27,6 +27,7 @@ import org.apache.commons.jcs.auxiliary.
 import org.apache.commons.jcs.auxiliary.remote.RemoteCacheAttributes;
 import org.apache.commons.jcs.auxiliary.remote.RemoteCacheManager;
 import org.apache.commons.jcs.engine.CacheElement;
+import org.apache.commons.jcs.engine.CacheStatus;
 import org.apache.commons.jcs.engine.behavior.ICacheElement;
 import org.apache.commons.jcs.engine.control.MockCompositeCacheManager;
 import org.apache.commons.jcs.engine.control.MockElementSerializer;
@@ -89,6 +90,8 @@ public class BasicRemoteCacheClientServe
         cache.update( element );
         SleepUtil.sleepAtLeast( 200 );
 
+        assertEquals("Cache is alive", CacheStatus.ALIVE, cache.getStatus());
+
         // VERIFY
         try {
             assertEquals( "Wrong number of puts", 1, server.getPutCount() - numPutsPrior
);
@@ -133,6 +136,8 @@ public class BasicRemoteCacheClientServe
         cache.update( element );
         SleepUtil.sleepAtLeast( 50 );
 
+        assertEquals("Cache is alive", CacheStatus.ALIVE, cache.getStatus());
+
         // VERIFY
         try {
             assertEquals( "Wrong number of puts", 1, server.getPutCount() - numPutsPrior
);
@@ -185,6 +190,8 @@ public class BasicRemoteCacheClientServe
         cache.update( element );
         SleepUtil.sleepAtLeast( 50 );
 
+        assertEquals("Cache is alive", CacheStatus.ALIVE, cache.getStatus());
+
         // VERIFY
         try
         {
@@ -234,6 +241,8 @@ public class BasicRemoteCacheClientServe
         }
         SleepUtil.sleepAtLeast( 500 );
 
+        assertEquals("Cache is alive", CacheStatus.ALIVE, cache.getStatus());
+
         // VERIFY
         try {
             assertEquals( "Wrong number of puts", numToPut, server.getPutCount() - numPutsPrior
);



Mime
View raw message