JBoss Cache SVN: r7299 - core/trunk/src/test/java/org/jboss/cache/optimistic.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-12-12 03:43:17 -0500 (Fri, 12 Dec 2008)
New Revision: 7299
Modified:
core/trunk/src/test/java/org/jboss/cache/optimistic/AbstractOptimisticTestCase.java
core/trunk/src/test/java/org/jboss/cache/optimistic/ConcurrentTransactionTest.java
core/trunk/src/test/java/org/jboss/cache/optimistic/FullStackInterceptorTest.java
core/trunk/src/test/java/org/jboss/cache/optimistic/NodeInterceptorRemoveNodeTest.java
core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticWithCacheLoaderTest.java
core/trunk/src/test/java/org/jboss/cache/optimistic/ValidatorInterceptorTest.java
Log:
removed System.out.print
Modified: core/trunk/src/test/java/org/jboss/cache/optimistic/AbstractOptimisticTestCase.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/optimistic/AbstractOptimisticTestCase.java 2008-12-12 08:42:29 UTC (rev 7298)
+++ core/trunk/src/test/java/org/jboss/cache/optimistic/AbstractOptimisticTestCase.java 2008-12-12 08:43:17 UTC (rev 7299)
@@ -303,7 +303,6 @@
}
// Object[] oa = c.getArgs();
// Object[] na = new Object[oa.length + 1];
-// System.out.println("*** " + oa.length);
// System.arraycopy(oa, 0, na, 0, oa.length);
// na[oa.length] = new DefaultDataVersion();
// newList.add(MethodCallFactory.create(MethodDeclarations.getVersionedMethodId(c.getMethodId()), na));
Modified: core/trunk/src/test/java/org/jboss/cache/optimistic/ConcurrentTransactionTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/optimistic/ConcurrentTransactionTest.java 2008-12-12 08:42:29 UTC (rev 7298)
+++ core/trunk/src/test/java/org/jboss/cache/optimistic/ConcurrentTransactionTest.java 2008-12-12 08:43:17 UTC (rev 7299)
@@ -95,7 +95,6 @@
assertEquals(value, cache.get(abxy, key));
NodeSPI<Object, Object> n = cache.getRoot();
- System.out.println(n.getVersion());
}
public void testConcurrentCreationTestWithEmptyCache() throws Exception
Modified: core/trunk/src/test/java/org/jboss/cache/optimistic/FullStackInterceptorTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/optimistic/FullStackInterceptorTest.java 2008-12-12 08:42:29 UTC (rev 7298)
+++ core/trunk/src/test/java/org/jboss/cache/optimistic/FullStackInterceptorTest.java 2008-12-12 08:43:17 UTC (rev 7299)
@@ -506,14 +506,12 @@
mgr.begin();
Transaction tx = mgr.getTransaction();
- System.out.println("Current TX " + mgr.getTransaction());
assertEquals(pojo1, cache.get("/one/two", "key1"));
// start another
mgr.suspend();
mgr.begin();
- System.out.println("Current TX " + mgr.getTransaction());
cache.put("/one/two", "key2", pojo2);
// assert we can see this INSIDE the existing tx
@@ -523,10 +521,8 @@
// assert we can see this outside the existing tx
assertEquals(pojo2, cache.get("/one/two", "key2"));
- System.out.println("Current TX " + mgr.getTransaction());
// resume the suspended one
mgr.resume(tx);
- System.out.println("Current TX " + mgr.getTransaction());
// assert we can't see the change from tx2 as we already touched the node
assertEquals(null, cache.get("/one/two", "key2"));
mgr.commit();
@@ -594,7 +590,6 @@
cache.put("/one/two", "key1", "val1");
mgr.commit();
keys = cache.getNode("/one/two").getKeys();
- System.out.println("keys after TX #1: " + keys);
assertEquals(1, keys.size());
// First TX
@@ -612,14 +607,12 @@
// assert we can see this outside the existing tx
keys = cache.getNode("/one/two").getKeys();
- System.out.println("keys after TX #3 committed: " + keys);
assertEquals(2, keys.size());
// resume the suspended one
mgr.resume(tx);
// assert we can't see the change from tx2 as we already touched the node
keys = cache.getNode("/one/two").getKeys();
- System.out.println("keys after TX #2 resumed (in private workspace of TX #2): " + keys);
assertEquals(2, keys.size());// we will see key1 and key2, but *not* key3
// this will fail as our workspace has version 1, whereas cache has 2; TX will be rolled back
@@ -630,12 +623,9 @@
}
catch (RollbackException rollback_ex)
{
- System.out.println("TX was rolled back because the other TX committed first and incremented version ID." +
- " This is the expected behavior");
}
keys = cache.getNode("/one/two").getKeys();
- System.out.println("keys after TX #2 was rolled back: " + keys);
assertEquals(2, keys.size());// key1 and key2
destroyCache(cache);
}
Modified: core/trunk/src/test/java/org/jboss/cache/optimistic/NodeInterceptorRemoveNodeTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/optimistic/NodeInterceptorRemoveNodeTest.java 2008-12-12 08:42:29 UTC (rev 7298)
+++ core/trunk/src/test/java/org/jboss/cache/optimistic/NodeInterceptorRemoveNodeTest.java 2008-12-12 08:43:17 UTC (rev 7299)
@@ -129,7 +129,6 @@
assertEquals(false, workspace.getNode(Fqn.fromString("/one")).isRemoved());
List<Set<Fqn>> mergedChildren = workspace.getNode(Fqn.fromString("/one")).getMergedChildren();
assertEquals(1, mergedChildren.get(1).size());
- System.out.println(entry.getModifications());
assertTrue(!cache.exists("/one/two"));
}
Modified: core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticWithCacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticWithCacheLoaderTest.java 2008-12-12 08:42:29 UTC (rev 7298)
+++ core/trunk/src/test/java/org/jboss/cache/optimistic/OptimisticWithCacheLoaderTest.java 2008-12-12 08:43:17 UTC (rev 7299)
@@ -265,7 +265,6 @@
assertEquals(value, cache1.get(fqn, key));
// test that loader1, loader2, cache2 doesnt have entry
- System.out.println("*** " + loader1.get(fqn));
assertNull(loader1.get(fqn));
assertNull(loader2.get(fqn));
assertNull(cache2.get(fqn, key));
Modified: core/trunk/src/test/java/org/jboss/cache/optimistic/ValidatorInterceptorTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/optimistic/ValidatorInterceptorTest.java 2008-12-12 08:42:29 UTC (rev 7298)
+++ core/trunk/src/test/java/org/jboss/cache/optimistic/ValidatorInterceptorTest.java 2008-12-12 08:43:17 UTC (rev 7299)
@@ -65,8 +65,6 @@
TestingUtil.replaceInterceptorChain(cache, ici);
cache.addInterceptor(new ResetRemoteFlagInterceptor(), InvocationContextInterceptor.class);
-
- System.out.println("Interceptors: " + CachePrinter.printCacheInterceptors(cache));
}
@AfterMethod
16 years
JBoss Cache SVN: r7298 - core/trunk/src/test/java/org/jboss/cache/notifications.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-12-12 03:42:29 -0500 (Fri, 12 Dec 2008)
New Revision: 7298
Modified:
core/trunk/src/test/java/org/jboss/cache/notifications/BuddyGroupChangeNotificationTest.java
core/trunk/src/test/java/org/jboss/cache/notifications/NotifierAnnotationsTest.java
Log:
removed System.out.print
Modified: core/trunk/src/test/java/org/jboss/cache/notifications/BuddyGroupChangeNotificationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/notifications/BuddyGroupChangeNotificationTest.java 2008-12-12 08:42:04 UTC (rev 7297)
+++ core/trunk/src/test/java/org/jboss/cache/notifications/BuddyGroupChangeNotificationTest.java 2008-12-12 08:42:29 UTC (rev 7298)
@@ -56,7 +56,6 @@
@AfterMethod
public void tearDown() throws Exception
{
- System.out.println("***** BuddyGroupChangeNotificationTest.tearDown");
super.tearDown();
TestingUtil.killCaches(c1, c2, c3);
c1 = null;
Modified: core/trunk/src/test/java/org/jboss/cache/notifications/NotifierAnnotationsTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/notifications/NotifierAnnotationsTest.java 2008-12-12 08:42:04 UTC (rev 7297)
+++ core/trunk/src/test/java/org/jboss/cache/notifications/NotifierAnnotationsTest.java 2008-12-12 08:42:29 UTC (rev 7298)
@@ -225,7 +225,6 @@
@CacheStopped
public void callback(Event e)
{
- System.out.println("Hello");
}
}
16 years
JBoss Cache SVN: r7297 - core/trunk/src/test/java/org/jboss/cache/mgmt.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-12-12 03:42:04 -0500 (Fri, 12 Dec 2008)
New Revision: 7297
Modified:
core/trunk/src/test/java/org/jboss/cache/mgmt/PassivationTest.java
Log:
removed System.out.print
Modified: core/trunk/src/test/java/org/jboss/cache/mgmt/PassivationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/mgmt/PassivationTest.java 2008-12-12 08:41:56 UTC (rev 7296)
+++ core/trunk/src/test/java/org/jboss/cache/mgmt/PassivationTest.java 2008-12-12 08:42:04 UTC (rev 7297)
@@ -37,7 +37,6 @@
PassivationInterceptor pass = TestingUtil.findInterceptor(cache, PassivationInterceptor.class);
assertNotNull("PassivationInterceptor not found.", pass);
- System.out.println("count of misses " + act.getCacheLoaderMisses());
int miss = 5;
int activations = 0;
// was 5 in 1.3 (one per attribute)
16 years
JBoss Cache SVN: r7296 - in core/trunk/src/test/java/org/jboss/cache/marshall: data and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-12-12 03:41:56 -0500 (Fri, 12 Dec 2008)
New Revision: 7296
Modified:
core/trunk/src/test/java/org/jboss/cache/marshall/AsyncReplTest.java
core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller200Test.java
core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller210Test.java
core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshallerTestBase.java
core/trunk/src/test/java/org/jboss/cache/marshall/FooClassLoader.java
core/trunk/src/test/java/org/jboss/cache/marshall/InvalidRegionForStateTransferTest.java
core/trunk/src/test/java/org/jboss/cache/marshall/RedeploymentEmulationTest.java
core/trunk/src/test/java/org/jboss/cache/marshall/SyncReplTest.java
core/trunk/src/test/java/org/jboss/cache/marshall/data/Address.java
Log:
removed System.out.print
Modified: core/trunk/src/test/java/org/jboss/cache/marshall/AsyncReplTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/AsyncReplTest.java 2008-12-12 08:41:33 UTC (rev 7295)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/AsyncReplTest.java 2008-12-12 08:41:56 UTC (rev 7296)
@@ -53,11 +53,8 @@
public void setUp() throws Exception
{
super.setUp();
- log("creating cache1");
cache1 = createCache("TestCache");
- log("creating cache2");
-
cache2 = createCache("TestCache");
replListener1 = ReplicationListener.getReplicationListener(cache1);
@@ -302,9 +299,4 @@
Class<?> clazz = cl.loadClass(PERSON_CLASSNAME);
return clazz.newInstance();
}
-
- private void log(String msg)
- {
- System.out.println("-- [" + Thread.currentThread() + "]: " + msg);
- }
}
Modified: core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller200Test.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller200Test.java 2008-12-12 08:41:33 UTC (rev 7295)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller200Test.java 2008-12-12 08:41:56 UTC (rev 7296)
@@ -89,8 +89,6 @@
// test that the first thing on the stream is the fqn!
byte magic = ois.readByte();
short ref = ois.readShort();
- System.out.println("Magic number is " + magic);
-
assert magic == CacheMarshaller200.MAGICNUMBER_FQN;
// now the chunks of an Fqn
Modified: core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller210Test.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller210Test.java 2008-12-12 08:41:33 UTC (rev 7295)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller210Test.java 2008-12-12 08:41:56 UTC (rev 7296)
@@ -62,8 +62,8 @@
for (int i : ints)
{
- System.out.println("CM200: Number of bytes (i=" + i + ") : " + getAndTestSize(cm200, i));
- System.out.println("CM210: Number of bytes (i=" + i + ") : " + getAndTestSize(cm210, i));
+ getAndTestSize(cm200, i);
+ getAndTestSize(cm210, i);
}
}
@@ -78,8 +78,8 @@
for (long i : ints)
{
- System.out.println("CM200: Number of bytes (i=" + i + ") : " + getAndTestSize(cm200, i));
- System.out.println("CM210: Number of bytes (i=" + i + ") : " + getAndTestSize(cm210, i));
+ getAndTestSize(cm200, i);
+ getAndTestSize(cm210, i);
}
}
Modified: core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshallerTestBase.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshallerTestBase.java 2008-12-12 08:41:33 UTC (rev 7295)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshallerTestBase.java 2008-12-12 08:41:56 UTC (rev 7296)
@@ -109,7 +109,6 @@
VersionAwareMarshaller marshaller = tl.marshaller;
Fqn fqn = Fqn.fromElements("JSESSIONID", "1010.10.5:3000", "1234567890", "1");
byte[] asBytes = marshaller.objectToByteBuffer(fqn);
- System.out.println("Marshalled to " + asBytes.length + " bytes");
Object o2 = marshaller.objectFromByteBuffer(asBytes);
assertEquals(fqn, o2);
}
Modified: core/trunk/src/test/java/org/jboss/cache/marshall/FooClassLoader.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/FooClassLoader.java 2008-12-12 08:41:33 UTC (rev 7295)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/FooClassLoader.java 2008-12-12 08:41:56 UTC (rev 7296)
@@ -107,21 +107,12 @@
}
bytes = baos.toByteArray();
- System.out.println("// GENERATED using main() method to read org/jboss/cache/marshall/Foo.clazz into a byte[]");
- System.out.println("// so that this byte stream is available even if Foo.clazz is not included in the test classpath by Maven");
- System.out.println("// Copy out this generated snippet into FooClassLoader.java and use this byte[] instead of ");
- System.out.println("// trying to read Foo.clazz off the classpath. ");
- System.out.println();
- System.out.println("return new byte[] {");
-
int i=0;
for (byte b : bytes)
{
i++;
System.out.print(b);
System.out.print(", ");
- if (i % 30 == 0) System.out.println();
}
- System.out.println("};");
}*/
}
Modified: core/trunk/src/test/java/org/jboss/cache/marshall/InvalidRegionForStateTransferTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/InvalidRegionForStateTransferTest.java 2008-12-12 08:41:33 UTC (rev 7295)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/InvalidRegionForStateTransferTest.java 2008-12-12 08:41:56 UTC (rev 7296)
@@ -44,7 +44,6 @@
// also make sure we use a thread pool size of 1
jgroupsCfg = jgroupsCfg.replaceFirst("thread_pool.max_threads=[0-9]*;", "thread_pool.max_threads=1;");
- System.out.println(">>>> " + jgroupsCfg);
c1.getConfiguration().setClusterConfig(jgroupsCfg);
c1.getConfiguration().setUseRegionBasedMarshalling(true);
Modified: core/trunk/src/test/java/org/jboss/cache/marshall/RedeploymentEmulationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/RedeploymentEmulationTest.java 2008-12-12 08:41:33 UTC (rev 7295)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/RedeploymentEmulationTest.java 2008-12-12 08:41:56 UTC (rev 7296)
@@ -81,8 +81,6 @@
}
catch (ClassCastException cce)
{
- System.out.println("Expecting: " + INSTANCE_CLASS_NAME);
- System.out.println("Got: " + cce.getMessage());
assertTrue(cce.getMessage().startsWith(INSTANCE_CLASS_NAME));
}
}
Modified: core/trunk/src/test/java/org/jboss/cache/marshall/SyncReplTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/SyncReplTest.java 2008-12-12 08:41:33 UTC (rev 7295)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/SyncReplTest.java 2008-12-12 08:41:56 UTC (rev 7296)
@@ -58,11 +58,8 @@
super.setUp();
SyncReplTestTL srtl = new SyncReplTestTL();
threadLocal.set(srtl);
- log("creating cache1");
srtl.cache1 = createCache("TestCache");
- log("creating cache2");
-
srtl.cache2 = createCache("TestCache");
srtl.addr_ = new Address();
srtl.addr_.setCity("San Jose");
@@ -463,10 +460,4 @@
Class clazz = cl.loadClass(PERSON_CLASSNAME);
return clazz.newInstance();
}
-
- private void log(String msg)
- {
- System.out.println("-- [" + Thread.currentThread() + "]: " + msg);
- }
-
}
Modified: core/trunk/src/test/java/org/jboss/cache/marshall/data/Address.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/data/Address.java 2008-12-12 08:41:33 UTC (rev 7295)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/data/Address.java 2008-12-12 08:41:56 UTC (rev 7296)
@@ -31,13 +31,11 @@
public String getCity()
{
-// System.out.println("********* getting city of " +city);
return city;
}
public void setCity(String city)
{
-// System.out.println("********* setting city of " +city);
this.city = city;
}
16 years
JBoss Cache SVN: r7295 - in core/trunk/src/test/java/org/jboss/cache/lock: pessimistic and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-12-12 03:41:33 -0500 (Fri, 12 Dec 2008)
New Revision: 7295
Modified:
core/trunk/src/test/java/org/jboss/cache/lock/IdentityLockTest.java
core/trunk/src/test/java/org/jboss/cache/lock/LockReleaseTest.java
core/trunk/src/test/java/org/jboss/cache/lock/LockTest.java
core/trunk/src/test/java/org/jboss/cache/lock/MVCCLockManagerRecordingTest.java
core/trunk/src/test/java/org/jboss/cache/lock/MVCCLockManagerTest.java
core/trunk/src/test/java/org/jboss/cache/lock/NonBlockingWriterLockTest.java
core/trunk/src/test/java/org/jboss/cache/lock/ReadWriteLockTest.java
core/trunk/src/test/java/org/jboss/cache/lock/ReadWriteLockWithUpgradeTest.java
core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreference2Readers1WriterLockTest.java
core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreferenceReadWriteLockTest.java
core/trunk/src/test/java/org/jboss/cache/lock/StripedLockTest.java
core/trunk/src/test/java/org/jboss/cache/lock/pessimistic/ConcurrentPutRemoveTest.java
Log:
removed System.out.print
Modified: core/trunk/src/test/java/org/jboss/cache/lock/IdentityLockTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/IdentityLockTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/IdentityLockTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -216,7 +216,6 @@
final Object o1 = new Object();
final Object o2 = new Object();
- System.out.println("");
// 1. o1 acquires the lock -- succeeds
Thread t1 = new Thread()
{
@@ -317,7 +316,6 @@
final Object o1 = new Object();
final Object o2 = new Object();
- System.out.println("");
// 1. o1 acquires the lock -- succeeds
Thread t1 = new Thread()
{
@@ -418,7 +416,6 @@
log("testReadAndReleaseAll() ...");
final Object o1 = new Object();
final Object o2 = new Object();
- System.out.println("");
// 1. o1 acquires the lock -- succeeds
try
@@ -476,7 +473,6 @@
setLevelSerial();
log("testWriteAndReleaseAll() ...");
final Object o1 = new Object();
- System.out.println("");
// 1. o1 acquires the lock -- succeeds
try
@@ -527,7 +523,6 @@
void log(String msg)
{
- // System.out.println("-- [" + Thread.currentThread() + "]: " + msg);
logger_.info("-- [" + Thread.currentThread() + "]: " + msg);
}
@@ -546,7 +541,6 @@
{
for (int i = 0; i < opCount; i++)
{
-// if (i % 10 == 0) System.out.println("readLockChanger loop# " + i);
lockMap.addReader(new Object());
}
}
@@ -562,7 +556,6 @@
{
if (i % 10 == 0)
{
-// System.out.println("toStringProcessor loop# " + i + ", " + (System.currentTimeMillis() - initialTime));
initialTime = System.currentTimeMillis();
}
try
@@ -580,18 +573,13 @@
}
};
toStringProcessor.start();
- System.out.println("toStringProcessor started");
readLockChanger.start();
- System.out.println("readLockChanger started");
readLockChanger.join();
flags[1] = true;//stopping the toStringProcessor
- System.out.println("readLockChanger stopped");
toStringProcessor.join();
- System.out.println("toStringProcessor stopped");
- System.out.println("flags[0]=" + flags[0]);
assertFalse(flags[0]);
}
}
Modified: core/trunk/src/test/java/org/jboss/cache/lock/LockReleaseTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/LockReleaseTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/LockReleaseTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -144,7 +144,6 @@
assertEquals("we ran outside of a TX, locks should have been released: ", 0, cache.getNumberOfLocksHeld());
Set<Object> keys = cache.getNode(NODE1).getKeys();
- System.out.println("keys of " + NODE1 + " are " + keys);
assertEquals("getKeys() called outside the TX should have released all locks", 0, cache.getNumberOfLocksHeld());
tx.begin();
@@ -166,7 +165,6 @@
assertEquals("we ran outside of a TX, locks should have been released: ", 0, cache.getNumberOfLocksHeld());
Set<Object> keys = cache.getNode(NODE2).getChildrenNames();
- System.out.println("keys of " + NODE2 + " are " + keys);
assertEquals("getChildrenNames() called outside the TX should have released all locks", 0,
cache.getNumberOfLocksHeld());
@@ -187,13 +185,10 @@
cache.put(NODE2, KEY, VAL1);
assertEquals("we ran outside of a TX, locks should have been released: ", 0, cache.getNumberOfLocksHeld());
- System.out.println(cache.getNode(NODE1));
assertEquals("print() called outside the TX should have released all locks", 0, cache.getNumberOfLocksHeld());
tx.begin();
- System.out.println(cache.getNode(NODE1));
assertEquals("we should hold 1 read locks now (for print()): ", 2, cache.getNumberOfLocksHeld());
- System.out.println(cache.getNode(NODE2));
assertEquals("we should hold 3 read locks now (for print()): ", 4, cache.getNumberOfLocksHeld());
tx.commit();
assertEquals("we should have released all 3 read locks: ", 0, cache.getNumberOfLocksHeld());
@@ -286,6 +281,5 @@
txLocksReleased.await(); //wait for tx locks to be released
assertEquals(0, cache.getNumberOfLocksHeld());
- System.out.println("LockReleaseTest.testNodeReleaseOnAcquisitionTimeout finished!");
}
}
Modified: core/trunk/src/test/java/org/jboss/cache/lock/LockTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/LockTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/LockTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -510,7 +510,6 @@
start = System.currentTimeMillis();
now = System.currentTimeMillis();
- System.out.println("[" + Thread.currentThread().getName() + "] [" + (now - start) + "] " + s);
}
Modified: core/trunk/src/test/java/org/jboss/cache/lock/MVCCLockManagerRecordingTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/MVCCLockManagerRecordingTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/MVCCLockManagerRecordingTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -48,6 +48,5 @@
fqns.add(Fqn.fromString("/1/2/3"));
fqns.add(Fqn.fromString("/a/b/c/d"));
- for (Fqn f : fqns) System.out.println("Fqn: " + f + "; hash = " + lc.hashToIndex(f));
}
}
Modified: core/trunk/src/test/java/org/jboss/cache/lock/MVCCLockManagerTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/MVCCLockManagerTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/MVCCLockManagerTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -99,10 +99,5 @@
fqns.add(Fqn.fromString("/A/B/C"));
fqns.add(Fqn.fromString("/A/B/C/D"));
fqns.add(Fqn.fromString("/A/B/C/E"));
-
- for (Fqn f : fqns)
- {
- System.out.println("Fqn: " + f + " bucket: " + lm.lockContainer.hashToIndex(f));
- }
}
}
Modified: core/trunk/src/test/java/org/jboss/cache/lock/NonBlockingWriterLockTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/NonBlockingWriterLockTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/NonBlockingWriterLockTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -42,25 +42,16 @@
public void setUp() throws Exception
{
logX("\n");
- log("Setting up test case ...");
}
@AfterMethod(alwaysRun = true)
public void tearDown() throws Exception
{
- log("Tearing down test case ...");
}
- private static void log(String str)
- {
- System.out.println(Thread.currentThread() + ": "
- + java.util.Calendar.getInstance().getTime() + " : " + str);
- }
-
// For debugging purpose
private static void logX(String str)
{
- log(str);
// try {
// logToFile(str);
// } catch (IOException ioe) {
Modified: core/trunk/src/test/java/org/jboss/cache/lock/ReadWriteLockTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/ReadWriteLockTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/ReadWriteLockTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -113,9 +113,7 @@
{
try
{
- log("acquiring WL");
lock.writeLock().lock();
- log("acquired WL successfully");
sleep(1000);
}
catch (InterruptedException e)
@@ -124,7 +122,6 @@
}
finally
{
- log("releasing WL");
lock.writeLock().unlock();
}
}
@@ -142,9 +139,7 @@
{
try
{
- log("acquiring RL");
lock.readLock().lock();
- log("acquired RL successfully");
sleep(500);
}
catch (InterruptedException e)
@@ -153,15 +148,8 @@
}
finally
{
- log("releasing RL");
lock.readLock().unlock();
}
}
}
-
- static void log(String msg)
- {
- System.out.println(Thread.currentThread().getName() + ": " + msg);
- }
-
}
Modified: core/trunk/src/test/java/org/jboss/cache/lock/ReadWriteLockWithUpgradeTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/ReadWriteLockWithUpgradeTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/ReadWriteLockWithUpgradeTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -43,13 +43,7 @@
}
- private static void log(String str)
- {
- System.out.println(Thread.currentThread() + ": "
- + java.util.Calendar.getInstance().getTime() + " : " + str);
- }
-
/***************************************************************/
/* Utility functions to creat threads for RL, WL and UL */
/***************************************************************/
@@ -113,13 +107,11 @@
{
if (!rlock.tryLock(msecs, TimeUnit.MILLISECONDS))
{
- log(caseNum + "-" + name + " requesting read lock failed!\n");
String str = caseNum + "-" + name + "-RL-0";
postLockingResult(str);
return;
}
// OK, read lock obtained, sleep and release it.
- log(caseNum + "-" + name + " requesting read lock succeeded!\n");
String str = caseNum + "-" + name + "-RL-1";
postLockingResult(str);
TestingUtil.sleepThread(sleepSecs);
@@ -138,7 +130,6 @@
}
rlock.unlock();
- log(caseNum + "-" + name + " releasing read lock.\n");
}
catch (Exception ex)
{
@@ -167,13 +158,11 @@
Lock wlock = lock_.writeLock();
if (!wlock.tryLock(msecs, TimeUnit.MILLISECONDS))
{
- log(caseNum + "-" + name + " requesting write lock failed!\n");
String str = caseNum + "-" + name + "-WL-0";
postLockingResult(str);
return;
}
// OK, write lock obtained, sleep and release it.
- log(caseNum + "-" + name + " requesting write lock succeeded!\n");
String str = caseNum + "-" + name + "-WL-1";
postLockingResult(str);
TestingUtil.sleepThread(sleepSecs);
@@ -192,7 +181,6 @@
}
wlock.unlock();
- log(caseNum + "-" + name + " releasing write lock.\n");
}
catch (Exception ex)
{
@@ -223,23 +211,19 @@
Lock wlock = null;
if (!rlock.tryLock(msecs, TimeUnit.MILLISECONDS))
{
- log(caseNum + "-" + name + " requesting read lock failed!\n");
String str = caseNum + "-" + name + "-RL-0";
postLockingResult(str);
return;
}
// OK, read lock obtained, sleep and upgrade it later.
- log(caseNum + "-" + name + " requesting read lock succeeded (upgrade later)!\n");
TestingUtil.sleepThread(SLEEP_MSECS / 2);
String str = caseNum + "-" + name + "-UL-";
if ((wlock = lock_.upgradeLockAttempt(msecs)) == null)
{
- log(caseNum + "-" + name + " requesting upgrade lock failed!\n");
str += "0";
}
else
{
- log(caseNum + "-" + name + " requesting upgrade lock succeeded!\n");
str += "1";
}
postLockingResult(str);
@@ -248,7 +232,6 @@
if (wlock != null)
{
wlock.unlock();
- log(caseNum + "-" + name + " releasing upgrade lock.\n");
}
rlock.unlock();
}
@@ -277,18 +260,15 @@
Lock rlock = lock_.readLock();
if (!rlock.tryLock(msecs, TimeUnit.MILLISECONDS))
{
- log(caseNum + "-" + name + " requesting read lock failed!\n");
String str = caseNum + "-" + name + "-RL-0";
postLockingResult(str);
return;
}
// OK, read lock obtained, sleep and release it.
- log(caseNum + "-" + name + " requesting read lock succeeded!\n");
String str = caseNum + "-" + name + "-RL-1";
postLockingResult(str);
TestingUtil.sleepThread(SLEEP_MSECS);
rlock.unlock();
- log(caseNum + "-" + name + " releasing read lock.\n");
}
catch (Exception ex)
{
@@ -307,18 +287,15 @@
Lock wlock = lock_.writeLock();
if (!wlock.tryLock(msecs, TimeUnit.MILLISECONDS))
{
- log(caseNum + "-" + name + " requesting write lock failed!\n");
String str = caseNum + "-" + name + "-WL-0";
postLockingResult(str);
return;
}
// OK, write lock obtained, sleep and release it.
- log(caseNum + "-" + name + " requesting write lock succeeded!\n");
String str = caseNum + "-" + name + "-WL-1";
postLockingResult(str);
TestingUtil.sleepThread(SLEEP_MSECS);
wlock.unlock();
- log(caseNum + "-" + name + " releasing write lock.\n");
}
catch (Exception ex)
{
@@ -337,18 +314,15 @@
Lock ulock = null;
if ((ulock = lock_.upgradeLockAttempt(msecs)) == null)
{
- log(caseNum + "-" + name + " requesting upgrade lock failed!\n");
String str = caseNum + "-" + name + "-UL-0";
postLockingResult(str);
return;
}
// OK, write lock obtained, sleep and release it.
- log(caseNum + "-" + name + " requesting upgrade lock succeeded!\n");
String str = caseNum + "-" + name + "-UL-1";
postLockingResult(str);
TestingUtil.sleepThread(SLEEP_MSECS);
ulock.unlock();
- log(caseNum + "-" + name + " releasing upgrade lock.\n");
}
catch (Exception ex)
{
@@ -371,7 +345,6 @@
*/
protected synchronized void postLockingResult(Object obj)
{
- log(" Added *" + obj + "* to the result vector\n");
// Make sure we only have one in the vector
//if (!checkLockingResult((String)obj))
lockResult.addElement(obj);
@@ -393,14 +366,6 @@
break;
}
}
- if (rc)
- {
- log(" Searching for *" + expected + "* SUCCEEDED.\n");
- }
- else
- {
- log(" Searching for *" + expected + "* FAILED.\n");
- }
return rc;
}
Modified: core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreference2Readers1WriterLockTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreference2Readers1WriterLockTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreference2Readers1WriterLockTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -43,13 +43,6 @@
}
- private void log(String msg)
- {
- System.out.println(System.currentTimeMillis() + " " + Thread.currentThread() +
- " [" + Thread.currentThread().getName() + "]: " + msg);
- }
-
-
public void testSimpleUpgradeFromReadLockToWriteLock()
{
int readers, writers;
@@ -148,9 +141,7 @@
{
try
{
- log("acquiring RL");
rl.lock();
- log("acquired RL");
synchronized (this)
{
this.wait();
@@ -161,9 +152,7 @@
}
finally
{
- log("releasing RL");
rl.unlock();
- log("released RL");
}
}
}
@@ -188,26 +177,20 @@
{
try
{
- log("acquiring RL");
rl.lock();
- log("acquired RL");
synchronized (this)
{
this.wait();
}
- log("attempting to acquire WL");
wl.lock();
upgradeSuccessful = true;
- log("acquired WL");
synchronized (this)
{
this.wait();
}
- log("releasing WL");
rl.unlock();
- log("released WL");
}
catch (InterruptedException e)
{
Modified: core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreferenceReadWriteLockTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreferenceReadWriteLockTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreferenceReadWriteLockTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -175,7 +175,6 @@
synchronized (writer)
{
- log("terminating Writer");
writer.notify();
}
TestingUtil.sleepThread(500);
@@ -199,7 +198,6 @@
synchronized (reader)
{
- log("terminating Reader");
reader.notify();
}
@@ -213,12 +211,6 @@
}
- private static void log(String msg)
- {
- System.out.println(System.currentTimeMillis() + " " + Thread.currentThread() +
- " [" + Thread.currentThread().getName() + "]: " + msg);
- }
-
class Reader extends Thread
{
@@ -231,16 +223,12 @@
{
try
{
- log("acquiring RL");
rl.lock();
- log("acquired RL");
synchronized (this)
{
this.wait();
}
- log("releasing RL");
rl.unlock();
- log("released RL");
}
catch (InterruptedException e)
{
@@ -261,16 +249,12 @@
{
try
{
- log("acquiring WL");
wl.lock();
- log("acquired WL");
synchronized (this)
{
this.wait();
}
- log("releasing WL");
wl.unlock();
- log("released WL");
}
catch (InterruptedException e)
{
@@ -298,21 +282,15 @@
{
try
{
- log("acquiring RL");
rl.lock();
- log("acquired RL");
synchronized (this)
{
this.wait();
}
- log("attempting to lock WL");
// rl.unlock();
wl.lock();
upgradeSuccessful = true;
- log("acquired WL");
- log("releasing WL/RL");
wl.unlock();
- log("released WL/RL");
}
catch (InterruptedException e)
{
Modified: core/trunk/src/test/java/org/jboss/cache/lock/StripedLockTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/StripedLockTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/StripedLockTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -45,11 +45,6 @@
}
}
- System.out.println(distribution);
-
- // cannot be larger than the number of locks
- System.out.println("dist size: " + distribution.size());
- System.out.println("num shared locks: " + stripedLock.sharedLocks.length);
assertTrue(distribution.size() <= stripedLock.sharedLocks.length);
// assume at least a 2/3rd spread
assertTrue(distribution.size() * 1.5 >= stripedLock.sharedLocks.length);
@@ -65,9 +60,6 @@
Fqn fqn = Fqn.fromString("/" + ((char) (65 + r.nextInt(26))) + "/" + ((char) (65 + r.nextInt(26))) + "/" + ((char) (65 + r.nextInt(26))));
f.add(fqn);
}
-
- System.out.println("Fqns: " + f);
-
return f;
}
}
Modified: core/trunk/src/test/java/org/jboss/cache/lock/pessimistic/ConcurrentPutRemoveTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/lock/pessimistic/ConcurrentPutRemoveTest.java 2008-12-12 08:40:31 UTC (rev 7294)
+++ core/trunk/src/test/java/org/jboss/cache/lock/pessimistic/ConcurrentPutRemoveTest.java 2008-12-12 08:41:33 UTC (rev 7295)
@@ -66,7 +66,6 @@
// TODO: 3.0.0: This is still a known failure. MVCC in 3.0.0 will fix this; enable it in 3.0.0.
public void testLock() throws Exception
{
- System.out.println("ConcurrentPutRemoveTest.testLock count = " + (++count));
for (int x = 0; x < 2; x++)
{
SeparateThread t = new SeparateThread(x);
16 years
JBoss Cache SVN: r7294 - in core/trunk/src/test/java/org/jboss/cache/loader: deadlock and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-12-12 03:40:31 -0500 (Fri, 12 Dec 2008)
New Revision: 7294
Modified:
core/trunk/src/test/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderCompatibilityTest.java
core/trunk/src/test/java/org/jboss/cache/loader/AsyncFileCacheLoaderTest.java
core/trunk/src/test/java/org/jboss/cache/loader/C3p0ConnectionFactoryTest.java
core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderMethodCallCounterTest.java
core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderTestsBase.java
core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderWithReplicationTest.java
core/trunk/src/test/java/org/jboss/cache/loader/ClusteredCacheLoaderTest.java
core/trunk/src/test/java/org/jboss/cache/loader/ConcurrentPutRemoveEvictTest.java
core/trunk/src/test/java/org/jboss/cache/loader/DummyInMemoryCacheLoader.java
core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderConnectionTest.java
core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderStateTransferTest.java
core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderTest.java
core/trunk/src/test/java/org/jboss/cache/loader/S3CacheLoaderTest.java
core/trunk/src/test/java/org/jboss/cache/loader/TcpCacheLoaderTest.java
core/trunk/src/test/java/org/jboss/cache/loader/TcpCacheServerTest.java
core/trunk/src/test/java/org/jboss/cache/loader/TxCacheLoaderTest.java
core/trunk/src/test/java/org/jboss/cache/loader/deadlock/ConcurrentCreationDeadlockTest.java
Log:
removed System.out.print
Modified: core/trunk/src/test/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderCompatibilityTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderCompatibilityTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderCompatibilityTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -54,7 +54,6 @@
public void shutDownDatabase()
{
TestDbPropertiesFactory.shutdownInMemoryDatabase(props);
- System.out.println("Test execution took: " + (System.currentTimeMillis() - durration)/1000);
}
/**
Modified: core/trunk/src/test/java/org/jboss/cache/loader/AsyncFileCacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/AsyncFileCacheLoaderTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/AsyncFileCacheLoaderTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -93,7 +93,6 @@
loader.put(fqn, map);
loader.put(fqn, "a", "b");
loader.put(Collections.singletonList(mod));
- System.out.println(loader.get(fqn));
assertEquals("put right away", 3, loader.get(fqn).size());
loader.remove(fqn);
}
@@ -124,7 +123,6 @@
"cache.async.pollWait=10\n" +
"");
CacheLoader loader = cache.getCacheLoaderManager().getCacheLoader();
- System.out.println("Loader " + loader);
cache.put(Fqn.ROOT, "key1", "value1");
Thread.sleep(100);
assertEquals(null, loader.put(Fqn.ROOT, "key1", "value1"));
Modified: core/trunk/src/test/java/org/jboss/cache/loader/C3p0ConnectionFactoryTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/C3p0ConnectionFactoryTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/C3p0ConnectionFactoryTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -40,7 +40,6 @@
public void shutDownDatabase()
{
TestDbPropertiesFactory.shutdownInMemoryDatabase(props);
- System.out.println("Test execution took: " + (System.currentTimeMillis() - durration)/1000);
}
@BeforeMethod(alwaysRun = true)
Modified: core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderMethodCallCounterTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderMethodCallCounterTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderMethodCallCounterTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -48,34 +48,18 @@
public void testPut()
{
cache.put("/node", "key", "value");
- printReport("putKeyValue", dummyLoader);
}
public void testGet()
{
cache.get("/node", "key");
- printReport("getKey", dummyLoader);
}
public void testRemove()
{
cache.remove("/node", "key");
- printReport("removeKey", dummyLoader);
}
- private void printReport(String test, DummyCountingCacheLoader d)
- {
- System.out.println("------------------------------");
- System.out.println(" Test name: " + test);
- System.out.println(" cache loader stats:");
- System.out.println(" put count: " + d.getPutCount());
- System.out.println(" get count: " + d.getGetCount());
- System.out.println(" exists count: " + d.getExistsCount());
- System.out.println(" remove count: " + d.getRemoveCount());
- System.out.println(" getChildrenNames count: " + d.getGetChildrenNamesCount());
- System.out.println("------------------------------");
- }
-
public void testLoopedGets()
{
// put an object in cache
Modified: core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderTestsBase.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderTestsBase.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderTestsBase.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -189,7 +189,6 @@
cache.get(NODE, "X");
cache.put(NODE, m2);
Map<Object, Object> data = cache.getNode(NODE).getData();
- System.out.println("data = " + data);
assertEquals("combined", 4, data.size());
}
@@ -400,7 +399,6 @@
cache.put("/1/2/3/4/5/d/two", null);
cache.put("/1/2/3/4/5/d/three", null);
// cache.put("/a/b/c", "newKey", "newValue");
- System.out.println("cache: " + cache);
assertTrue(cache.exists("/1/2/3/4"));
assertTrue(cache.exists("/a/b/c"));
@@ -419,12 +417,10 @@
cache.removeNode(Fqn.ROOT);
cache.put("1/2/3/4/5/d", "key", "val");
cache.evict(Fqn.fromString("1/2/3/4/5/d"));
- System.out.println("-- checking for 1/2/3/4/5/d");
addDelay();
assert (!exists("1/2/3/4/5/d", null));// exists() doesn't load
cache.getNode("1/2/3/4/5/d");// get *does* load
assertTrue(cache.exists("1/2/3/4/5/d"));
- System.out.println("-- 1/2/3/4/5/d exists");
}
@@ -592,7 +588,6 @@
Set children = cache.getNode("/a").getChildrenNames();
assertNotNull("No children were loaded", children);
- System.out.println("children: " + children);
assertEquals("3 children weren't loaded", 3, children.size());
}
catch (Exception e)
@@ -620,7 +615,6 @@
Set children = cache.getNode("/a").getChildrenNames();
assertNotNull("No children were loaded", children);
- System.out.println("children: " + children);
assertEquals("3 children weren't loaded", 3, children.size());
}
catch (Exception e)
@@ -645,7 +639,6 @@
cache.getNode("/a/1");
Set children = cache.getNode("/a").getChildrenNames();
assertNotNull("No children were loaded", children);
- System.out.println("children: " + children);
assertEquals("3 children weren't loaded", 3, children.size());
}
@@ -667,7 +660,6 @@
cache.getNode("/a/1");
Set children = cache.getNode("/a").getChildrenNames();
assertNotNull("No children were loaded", children);
- System.out.println("children: " + children);
assertEquals("3 children weren't loaded", 3, children.size());
cache.evict(Fqn.fromString("/a/1"));
@@ -680,7 +672,6 @@
cache.getNode("/a/1");
children = cache.getNode("/a").getChildrenNames();
assertNotNull("No children were loaded", children);
- System.out.println("children: " + children);
assertEquals("3 children weren't loaded", 3, children.size());
}
catch (Exception e)
@@ -708,12 +699,10 @@
cache.getNode("/a/1");
Set children = cache.getNode("/a").getChildrenNames();
assertNotNull("No children were loaded", children);
- System.out.println("children: " + children);
assertEquals("3 children weren't loaded", 3, children.size());
children = cache.getNode("/a").getChildrenNames();
assertNotNull("No children were loaded", children);
- System.out.println("children: " + children);
assertEquals("3 children weren't loaded", 3, children.size());
}
catch (Exception e)
@@ -1684,7 +1673,6 @@
}
catch (UnsupportedOperationException ex)
{
- System.out.println("caught unsupported operation exception that's okay: " + ex);
return;
}
@@ -1879,7 +1867,6 @@
}
catch (UnsupportedOperationException ex)
{
- System.out.println("caught unsupported operation exception (this is expected): " + ex);
}
finally
{
@@ -1898,7 +1885,6 @@
}
catch (UnsupportedOperationException ex)
{
- System.out.println("caught unsupported operation exception (this is expected): " + ex);
}
finally
{
Modified: core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderWithReplicationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderWithReplicationTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/CacheLoaderWithReplicationTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -251,9 +251,6 @@
assertEquals("value", cache1.get(fqn, key));
assertEquals("value", cache2.get(fqn, key));
- System.out.println(loader1.get(fqn));
- System.out.println(loader2.get(fqn));
-
assertEquals("value", loader1.get(fqn).get(key));
assertEquals("value", loader2.get(fqn).get(key));
Modified: core/trunk/src/test/java/org/jboss/cache/loader/ClusteredCacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/ClusteredCacheLoaderTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/ClusteredCacheLoaderTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -90,7 +90,6 @@
@AfterMethod(alwaysRun = true)
public void tearDown()
{
- System.out.println("***** TEARING DOWN ***** ");
if (cache1 != null)
{
TestingUtil.killCaches(cache1);
@@ -268,7 +267,6 @@
latch.await();
for (int i = 0; i < loops; i++)
{
-// System.out.println("Evict in loop " + i);
Fqn f = singleFqn ? fqn : fqns.get(r.nextInt(fqns.size()));
cache1.evict(f);
TestingUtil.sleepRandom(50);
@@ -296,7 +294,6 @@
latch.await();
for (int i = 0; i < loops; i++)
{
-// System.out.println("Write in loop " + i);
Fqn f = singleFqn ? fqn : fqns.get(r.nextInt(fqns.size()));
cache2.put(f, "k", "v");
TestingUtil.sleepRandom(50);
@@ -321,7 +318,6 @@
latch.await();
for (int i = 0; i < loops; i++)
{
-// System.out.println("R1 in loop " + i);
loader1.get(singleFqn ? fqn : fqns.get(r.nextInt(fqns.size())));
TestingUtil.sleepRandom(50);
}
@@ -343,7 +339,6 @@
latch.await();
for (int i = 0; i < loops; i++)
{
-// System.out.println("R2 in loop " + i);
loader1.getChildrenNames(singleFqn ? fqn.getParent() : fqns.get(r.nextInt(fqns.size())).getParent());
TestingUtil.sleepRandom(50);
}
@@ -365,7 +360,6 @@
latch.await();
for (int i = 0; i < loops; i++)
{
-// System.out.println("R3 in loop " + i);
loader1.getChildrenNames(singleFqn ? fqn : fqns.get(r.nextInt(fqns.size())));
TestingUtil.sleepRandom(50);
}
Modified: core/trunk/src/test/java/org/jboss/cache/loader/ConcurrentPutRemoveEvictTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/ConcurrentPutRemoveEvictTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/ConcurrentPutRemoveEvictTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -102,7 +102,6 @@
// note that we sometimes get a null back. This is incorrect and inconsistent, but has to do with locks being held
// on nodes. Very similar to http://jira.jboss.org/jira/browse/JBCACHE-1165
String value = cache.get(fqn, key);
- System.out.println("Thread " + getName() + " got value " + value);
}
catch (Exception e)
{
Modified: core/trunk/src/test/java/org/jboss/cache/loader/DummyInMemoryCacheLoader.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/DummyInMemoryCacheLoader.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/DummyInMemoryCacheLoader.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -28,9 +28,10 @@
@ThreadSafe
public class DummyInMemoryCacheLoader extends AbstractCacheLoader
{
+
+ private static Log log = LogFactory.getLog(DummyInMemoryCacheLoader.class);
// Do NOT access this map directly. always use getNodesMap() since it may be overridden.
protected Map<Fqn, DummyNode> nodes = new ConcurrentHashMap<Fqn, DummyNode>();
- protected Log log = LogFactory.getLog(DummyInMemoryCacheLoader.class);
protected Map<Object, List<Modification>> transactions = new ConcurrentHashMap<Object, List<Modification>>();
protected boolean debug; // whether to dump System.out messages as well as log messages or not
protected final Object NULL = new Object()
@@ -274,7 +275,7 @@
protected void debugMessage(String msg)
{
- if (debug) System.out.println(" DummyInMemoryCacheLoader debug: " + msg);
+ if (log.isTraceEnabled()) log.trace(msg);
}
/**
Modified: core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderConnectionTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderConnectionTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderConnectionTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -46,7 +46,6 @@
for (int i = 0; i < 100; i++)
{
cache.put(Fqn.fromElements("C", Integer.toString(i)), "Blah", Integer.toString(i));
- System.out.println("added " + i + " dummy node to Jboss cache.");
}
assertConnectionsClosed();
Modified: core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderStateTransferTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderStateTransferTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderStateTransferTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -51,12 +51,10 @@
private Properties props1;
private Properties props2;
- private long durration;
@BeforeTest
public void createDatabase()
{
- durration = System.currentTimeMillis();
props1 = TestDbPropertiesFactory.getTestDbProperties();
props2 = TestDbPropertiesFactory.getTestDbProperties();
}
@@ -66,7 +64,6 @@
{
TestDbPropertiesFactory.shutdownInMemoryDatabase(props1);
TestDbPropertiesFactory.shutdownInMemoryDatabase(props2);
- System.out.println("Test execution took: " + (System.currentTimeMillis() - durration)/1000);
}
@@ -113,11 +110,9 @@
first = (CacheSPI) new UnitTestCacheFactory().createCache(getConfiguration(props1), getClass());
long cacheStartTime = System.currentTimeMillis() - startTime;
- System.out.println("cacheStartTime = " + cacheStartTime);
for (int i = 0; i < 5012; i++)
{
first.put("a/b/"+i, "k","v");
- if (i%1000 == 0) System.out.println(i + " operations executed so far");
}
startTime = System.currentTimeMillis();
second = (CacheSPI) new UnitTestCacheFactory().createCache(getConfiguration(props2), getClass());
@@ -127,6 +122,5 @@
{
second.get("a/b/"+ i, "k").equals("v");
}
- System.out.println("stateTranferTime = " + stateTranferTime);
}
}
Modified: core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/JDBCCacheLoaderTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -54,7 +54,6 @@
public void shutDownDatabase()
{
TestDbPropertiesFactory.shutdownInMemoryDatabase(props);
- System.out.println("Test execution took: " + (System.currentTimeMillis() - durration)/1000);
}
protected void configureCache() throws Exception
Modified: core/trunk/src/test/java/org/jboss/cache/loader/S3CacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/S3CacheLoaderTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/S3CacheLoaderTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -58,9 +58,7 @@
"cache.s3.secretAccessKey=" + System.getProperty("secretKey") + "\n" ;
}
CacheLoaderConfig config = getSingleCacheLoaderConfig("", "org.jboss.cache.loader.s3.S3CacheLoader", properties, false, true, false);
- // System.out.println(config);
Properties p = config.getFirstCacheLoaderConfig().getProperties();
- // System.out.println(p);
assertNotNull(p.get("cache.s3.accessKeyId"));
assertNotNull(p.get("cache.s3.secretAccessKey"));
cache.getConfiguration().setCacheLoaderConfig(config);
Modified: core/trunk/src/test/java/org/jboss/cache/loader/TcpCacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/TcpCacheLoaderTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/TcpCacheLoaderTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -28,7 +28,6 @@
// {
// try
// {
-// System.out.println("Starting TcpCacheServer");
// cacheServer = new TcpCacheServer();
// cacheServer.setBindAddress("127.0.0.1");
// cacheServer.setPort(12121);
@@ -73,7 +72,6 @@
// {
// if (cacheServer != null)
// {
-// System.out.println("Stopping TcpCacheServer");
// cacheServer.stop();
// }
// }
Modified: core/trunk/src/test/java/org/jboss/cache/loader/TcpCacheServerTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/TcpCacheServerTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/TcpCacheServerTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -40,7 +40,6 @@
{
if (cache_server != null)
{
- System.out.println("Stopping TcpCacheServer");
cache_server.stop();
}
}
@@ -77,7 +76,6 @@
if (cache_server != null)
{
- System.out.println("Stopping TcpCacheServer");
cache_server.stop();
cache_server = null;
}
@@ -99,7 +97,6 @@
{
try
{
- System.out.println("Starting TcpCacheServer");
cache_server.create();
cache_server.start();
}
Modified: core/trunk/src/test/java/org/jboss/cache/loader/TxCacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/TxCacheLoaderTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/TxCacheLoaderTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -145,7 +145,6 @@
}
catch (RollbackException rollback)
{
- System.out.println("--- TX was rolled back (as expected)");
assertTrue(true);
}
Modified: core/trunk/src/test/java/org/jboss/cache/loader/deadlock/ConcurrentCreationDeadlockTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/deadlock/ConcurrentCreationDeadlockTest.java 2008-12-12 08:39:59 UTC (rev 7293)
+++ core/trunk/src/test/java/org/jboss/cache/loader/deadlock/ConcurrentCreationDeadlockTest.java 2008-12-12 08:40:31 UTC (rev 7294)
@@ -241,17 +241,6 @@
}
/**
- * Log a message.
- *
- * @param msg The meessage to be logged.
- */
- private void log(String msg)
- {
- System.out.println(System.currentTimeMillis() + " "
- + Thread.currentThread() + " " + msg);
- }
-
- /**
* A worker thread that applies the concurrent modifications.
*
* @author Marian Nikolov
@@ -312,7 +301,6 @@
for (int i = m_start; i < m_start + m_count; i++)
{
m_state = -1;
- log("enter " + i);
if (checkAndSetState())
{
return;
@@ -355,12 +343,10 @@
return;
}
time = System.currentTimeMillis() - time;
- log("leave " + i + " took " + time + " msec");
}
}
catch (Exception e)
{
- log("caught exception in state " + m_state + ": " + e);
e.printStackTrace();
mcl_exception = e;
}
@@ -376,7 +362,6 @@
if (mcl_exception != null)
{
// another worker failed, terminate
- log("detected failure in state " + m_state);
return true;
}
m_state++;
16 years
JBoss Cache SVN: r7293 - core/trunk/src/test/java/org/jboss/cache/jmx/deprecated.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-12-12 03:39:59 -0500 (Fri, 12 Dec 2008)
New Revision: 7293
Modified:
core/trunk/src/test/java/org/jboss/cache/jmx/deprecated/CacheJmxWrapperTest.java
core/trunk/src/test/java/org/jboss/cache/jmx/deprecated/LifecycleNotificationTest.java
Log:
removed System.out.print
Modified: core/trunk/src/test/java/org/jboss/cache/jmx/deprecated/CacheJmxWrapperTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/jmx/deprecated/CacheJmxWrapperTest.java 2008-12-12 08:39:46 UTC (rev 7292)
+++ core/trunk/src/test/java/org/jboss/cache/jmx/deprecated/CacheJmxWrapperTest.java 2008-12-12 08:39:59 UTC (rev 7293)
@@ -291,10 +291,8 @@
assertTrue(cache.getNumberOfNodes() > 0);
assertEquals(0, cache.getNumberOfAttributes());
- System.out.println("cache locks before restart:\n" + cache.printLockInfo());
cache.destroy();
cache.start();
- System.out.println("cache locks after restart:\n" + cache.printLockInfo());
assertEquals(0, cache.getNumberOfNodes());
assertEquals(0, cache.getNumberOfAttributes());
@@ -375,8 +373,6 @@
String details = html ? wrapper.printCacheDetailsAsHtml() : wrapper.printCacheDetails();
- System.out.println("Cache details: " + CachePrinter.printCacheDetails(cache));
- System.out.println("Details: " + details);
assertTrue("Details include testing", details.contains("testing"));
assertTrue("Details include jmx", details.contains("jmx"));
Modified: core/trunk/src/test/java/org/jboss/cache/jmx/deprecated/LifecycleNotificationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/jmx/deprecated/LifecycleNotificationTest.java 2008-12-12 08:39:46 UTC (rev 7292)
+++ core/trunk/src/test/java/org/jboss/cache/jmx/deprecated/LifecycleNotificationTest.java 2008-12-12 08:39:59 UTC (rev 7293)
@@ -76,7 +76,6 @@
assertEquals("Correct state after unregistration",
CacheJmxWrapperMBean.UNREGISTERED, wrapper.getState());
- System.out.println(listener.notifications);
assertEquals("Correct number of notifications received", 4, listener.notifications.size());
assertEquals("Correct first notification", new Integer(CacheJmxWrapperMBean.STARTING), listener.notifications.get(0));
assertEquals("Correct second notification", new Integer(CacheJmxWrapperMBean.STARTED), listener.notifications.get(1));
16 years
JBoss Cache SVN: r7292 - core/trunk/src/test/java/org/jboss/cache/invalidation.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-12-12 03:39:46 -0500 (Fri, 12 Dec 2008)
New Revision: 7292
Modified:
core/trunk/src/test/java/org/jboss/cache/invalidation/InvalidationInterceptorTest.java
core/trunk/src/test/java/org/jboss/cache/invalidation/VersionInconsistencyTest.java
Log:
removed System.out.print
Modified: core/trunk/src/test/java/org/jboss/cache/invalidation/InvalidationInterceptorTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/invalidation/InvalidationInterceptorTest.java 2008-12-12 08:39:34 UTC (rev 7291)
+++ core/trunk/src/test/java/org/jboss/cache/invalidation/InvalidationInterceptorTest.java 2008-12-12 08:39:46 UTC (rev 7292)
@@ -545,12 +545,9 @@
private void dumpVersionInfo(CacheSPI c1, CacheSPI c2, Fqn fqn)
{
- System.out.println("**** Versin Info for Fqn [" + fqn + "] ****");
NodeSPI n1 = c1.getRoot().getChildDirect(fqn);
- System.out.println(" Cache 1: " + n1.getVersion() + " dataLoaded? " + n1.isDataLoaded());
NodeSPI n2 = c2.getRoot().getChildDirect(fqn);
- System.out.println(" Cache 2: " + n2.getVersion() + " dataLoaded? " + n2.isDataLoaded());
}
Modified: core/trunk/src/test/java/org/jboss/cache/invalidation/VersionInconsistencyTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/invalidation/VersionInconsistencyTest.java 2008-12-12 08:39:34 UTC (rev 7291)
+++ core/trunk/src/test/java/org/jboss/cache/invalidation/VersionInconsistencyTest.java 2008-12-12 08:39:46 UTC (rev 7292)
@@ -88,11 +88,9 @@
// the NEWER version of the data should be available, not the OLDER one.
Object val = cache1.get(node, "k");
- System.out.println("val = " + val);
assert val == null : "Older data should not have committed";
val = cache2.get(node, "k");
- System.out.println("val = " + val);
assert val.equals("v-newer");
// test node versions
16 years
JBoss Cache SVN: r7291 - core/trunk/src/test/java/org/jboss/cache/interceptors.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-12-12 03:39:34 -0500 (Fri, 12 Dec 2008)
New Revision: 7291
Modified:
core/trunk/src/test/java/org/jboss/cache/interceptors/MarshalledValueInterceptorTest.java
Log:
removed System.out.print
Modified: core/trunk/src/test/java/org/jboss/cache/interceptors/MarshalledValueInterceptorTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/interceptors/MarshalledValueInterceptorTest.java 2008-12-12 08:38:34 UTC (rev 7290)
+++ core/trunk/src/test/java/org/jboss/cache/interceptors/MarshalledValueInterceptorTest.java 2008-12-12 08:39:34 UTC (rev 7291)
@@ -51,7 +51,6 @@
cfg.setUseLazyDeserialization(true);
c = (CacheSPI) new UnitTestCacheFactory<Object, Object>().createCache(cfg, getClass());
- System.out.println(CachePrinter.printCacheInterceptors(c));
assert TestingUtil.findInterceptor(c, MarshalledValueInterceptor.class) != null;
}
@@ -61,7 +60,6 @@
cfg.setUseLazyDeserialization(false);
c = (CacheSPI) new UnitTestCacheFactory<Object, Object>().createCache(cfg, getClass());
- System.out.println(CachePrinter.printCacheInterceptors(c));
assert TestingUtil.findInterceptor(c, MarshalledValueInterceptor.class) == null;
}
16 years
JBoss Cache SVN: r7290 - core/trunk/src/test/java/org/jboss/cache/factories.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-12-12 03:38:34 -0500 (Fri, 12 Dec 2008)
New Revision: 7290
Modified:
core/trunk/src/test/java/org/jboss/cache/factories/CustomInterceptorChainTest.java
core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java
core/trunk/src/test/java/org/jboss/cache/factories/UnitTestCacheConfigurationFactory.java
Log:
removed System.out.print
Modified: core/trunk/src/test/java/org/jboss/cache/factories/CustomInterceptorChainTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/factories/CustomInterceptorChainTest.java 2008-12-12 08:38:03 UTC (rev 7289)
+++ core/trunk/src/test/java/org/jboss/cache/factories/CustomInterceptorChainTest.java 2008-12-12 08:38:34 UTC (rev 7290)
@@ -145,8 +145,6 @@
interceptors = cache.getInterceptorChain();
- System.out.println(interceptors);
-
assertEquals("Expecting 5 interceptors", 5, interceptors.size());
assertInterceptorLinkage(interceptors);
Modified: core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java 2008-12-12 08:38:03 UTC (rev 7289)
+++ core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java 2008-12-12 08:38:34 UTC (rev 7290)
@@ -54,7 +54,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testBareConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(5, list.size());
@@ -75,7 +74,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testBareConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(6, list.size());
@@ -98,7 +96,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testMvccConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(5, list.size());
@@ -120,7 +117,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testTxConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(5, list.size());
@@ -156,7 +152,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testSharedCacheLoaderConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(8, list.size());
@@ -186,7 +181,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testSharedCacheLoaderConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(8, list.size());
@@ -216,7 +210,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testUnsharedCacheLoaderConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(8, list.size());
@@ -246,7 +239,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testUnsharedCacheLoaderConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(8, list.size());
@@ -272,7 +264,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testTxAndRepl interceptors are:\n" + list);
assertNotNull(list);
assertEquals(6, list.size());
@@ -457,7 +448,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testCacheMgmtConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(6, list.size());
@@ -489,7 +479,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testEvictionInterceptorConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(7, list.size());
@@ -517,7 +506,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testEvictionInterceptorConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(11, list.size());
@@ -547,7 +535,6 @@
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
- System.out.println("testEvictionInterceptorConfig interceptors are:\n" + list);
assertNotNull(list);
assertEquals(8, list.size());
Modified: core/trunk/src/test/java/org/jboss/cache/factories/UnitTestCacheConfigurationFactory.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/factories/UnitTestCacheConfigurationFactory.java 2008-12-12 08:38:03 UTC (rev 7289)
+++ core/trunk/src/test/java/org/jboss/cache/factories/UnitTestCacheConfigurationFactory.java 2008-12-12 08:38:34 UTC (rev 7290)
@@ -141,7 +141,6 @@
tmp = tmp.replace("${jgroups.udp.mcast_addr:228.10.10.10}", "228.10.10.10");
tmp = tmp.replace("${jgroups.udp.mcast_port:45588}", "45588");
tmp = tmp.replace("${jgroups.udp.ip_ttl:2}", "2");
-// System.out.println("config string: " + tmp);
return tmp;
}
catch (Exception e)
@@ -169,7 +168,6 @@
tmp = tmp.replace("${jgroups.udp.mcast_addr:228.10.10.10}", "228.10.10.10");
tmp = tmp.replace("${jgroups.udp.mcast_port:45588}", "45588");
tmp = tmp.replace("${jgroups.udp.ip_ttl:2}", "2");
- System.out.println("config string: " + tmp);
return tmp;
}
catch (Exception e)
16 years