Author: mircea.markus
Date: 2008-12-12 03:57:24 -0500 (Fri, 12 Dec 2008)
New Revision: 7309
Modified:
core/trunk/src/test/java/org/jboss/cache/passivation/ReplicatedPassivationIntegrationTest.java
core/trunk/src/test/java/org/jboss/cache/transaction/pessimistic/ConcurrentTransactionalTest.java
Log:
removed system.out.err
Modified:
core/trunk/src/test/java/org/jboss/cache/passivation/ReplicatedPassivationIntegrationTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/passivation/ReplicatedPassivationIntegrationTest.java 2008-12-12
08:52:57 UTC (rev 7308)
+++
core/trunk/src/test/java/org/jboss/cache/passivation/ReplicatedPassivationIntegrationTest.java 2008-12-12
08:57:24 UTC (rev 7309)
@@ -161,7 +161,6 @@
void log(String msg)
{
- System.out.println("-- " + msg);
}
@CacheListener
@@ -187,8 +186,6 @@
if (!ne.isPre())
{
counter++;
- System.out.println("nodeActivate(): counter: " + counter);
- System.out.println("nodeActivate(): " + ne.getFqn());
}
}
@@ -197,7 +194,6 @@
{
if (ne.isPre())
{
- System.out.println("nodePassivate(): " + ne.getFqn());
}
}
Modified:
core/trunk/src/test/java/org/jboss/cache/transaction/pessimistic/ConcurrentTransactionalTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/transaction/pessimistic/ConcurrentTransactionalTest.java 2008-12-12
08:52:57 UTC (rev 7308)
+++
core/trunk/src/test/java/org/jboss/cache/transaction/pessimistic/ConcurrentTransactionalTest.java 2008-12-12
08:57:24 UTC (rev 7309)
@@ -65,8 +65,8 @@
TestingUtil.killCaches(cache);
cache = null;
thread_ex = null;
- // We just can't kill DummyTransactionManager. We are sharing single instance
in more tests.
- TestingUtil.killTransaction(TransactionSetup.getManager());
+ // We just can't kill DummyTransactionManager. We are sharing single instance
in more tests.
+ TestingUtil.killTransaction(TransactionSetup.getManager());
}
public void testConcurrentAccessWithRWLock() throws Throwable
@@ -101,9 +101,7 @@
long now = System.currentTimeMillis();
log("*** Time elapsed: " + (now - current));
- System.out.println("cache content: " + cache.toString());
Set<Integer> keys =
cache.getNode(Fqn.fromString("/a/b/c")).getKeys();
- System.out.println("number of keys=" + keys.size());
if (keys.size() != NUM)
{
@@ -111,27 +109,13 @@
try
{
- System.out.println("size=" + keys.size());
List<Integer> l = new LinkedList<Integer>(keys);
Collections.sort(l);
- System.out.println("keys: " + l);
- for (int i = 0; i < NUM; i++)
- {
- if (!l.contains(i))
- {
- System.out.println("missing: " + i);
- }
- }
-
LinkedList<Integer> duplicates = new LinkedList<Integer>();
for (Integer integer : l)
{
- if (duplicates.contains(integer))
+ if (!duplicates.contains(integer))
{
- System.out.println(integer + " is a duplicate");
- }
- else
- {
duplicates.add(integer);
}
}
Show replies by date