[jbosscache-commits] JBoss Cache SVN: r7299 - core/trunk/src/test/java/org/jboss/cache/optimistic.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Fri Dec 12 03:43:17 EST 2008
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
More information about the jbosscache-commits
mailing list