You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2014/04/04 02:31:55 UTC
svn commit: r1584481 -
/commons/proper/jcs/trunk/src/test/org/apache/commons/jcs/auxiliary/remote/server/BasicRemoteCacheClientServerUnitTest.java
Author: sebb
Date: Fri Apr 4 00:31:54 2014
New Revision: 1584481
URL: http://svn.apache.org/r1584481
Log:
Add cache stats to debug
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=1584481&r1=1584480&r2=1584481&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:31:54 2014
@@ -93,6 +93,7 @@ public class BasicRemoteCacheClientServe
try {
assertEquals( "Wrong number of puts", 1, server.getPutCount() - numPutsPrior );
} catch (junit.framework.AssertionFailedError e) {
+ System.out.println( cache.getStats() );
System.out.println( server.getStats() );
throw e;
}
@@ -136,6 +137,7 @@ public class BasicRemoteCacheClientServe
try {
assertEquals( "Wrong number of puts", 1, server.getPutCount() - numPutsPrior );
} catch (junit.framework.AssertionFailedError e) {
+ System.out.println( cache.getStats() );
System.out.println( server.getStats() );
throw e;
}
@@ -189,6 +191,7 @@ public class BasicRemoteCacheClientServe
assertEquals( "Wrong number of puts", 1, server.getPutCount() - numPutsPrior );
assertEquals( "Wrong number of puts to listener.", 1, listener.putCount );
} catch (junit.framework.AssertionFailedError e) {
+ System.out.println( cache.getStats() );
System.out.println( server.getStats() );
throw e;
}
@@ -215,7 +218,7 @@ public class BasicRemoteCacheClientServe
attributes.setRemotePort( remotePort );
RemoteCacheManager remoteCacheManager = RemoteCacheManager.getInstance( attributes, compositeCacheManager, new MockCacheEventLogger(), new MockElementSerializer() );
- String regionName = "testPutAndListen";
+ String regionName = "testPutaMultipleAndListen";
AuxiliaryCache<String, String> cache = remoteCacheManager.getCache( regionName );
MockRemoteCacheListener<String, String> listener = new MockRemoteCacheListener<String, String>();
@@ -236,6 +239,7 @@ public class BasicRemoteCacheClientServe
assertEquals( "Wrong number of puts", numToPut, server.getPutCount() - numPutsPrior );
assertEquals( "Wrong number of puts to listener.", numToPut, listener.putCount );
} catch (junit.framework.AssertionFailedError e) {
+ System.out.println( cache.getStats() );
System.out.println( server.getStats() );
throw e;
}