Author: mircea.markus
Date: 2008-11-04 11:24:20 -0500 (Tue, 04 Nov 2008)
New Revision: 7083
Modified:
core/trunk/src/test/java/org/jboss/cache/passivation/ReplAndStateTransferWithPassivationTest.java
Log:
make the test sequential as it shares a static dummy in memory cache loader
Modified:
core/trunk/src/test/java/org/jboss/cache/passivation/ReplAndStateTransferWithPassivationTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/passivation/ReplAndStateTransferWithPassivationTest.java 2008-11-04
16:12:57 UTC (rev 7082)
+++
core/trunk/src/test/java/org/jboss/cache/passivation/ReplAndStateTransferWithPassivationTest.java 2008-11-04
16:24:20 UTC (rev 7083)
@@ -54,32 +54,7 @@
public void testStateTransferOfPassivatedStatePessimistic() throws Exception
{
-// doTest(NodeLockingScheme.PESSIMISTIC, false);
- Cache cache1=null, cache2=null;
- Fqn A = Fqn.fromRelativeElements(Fqn.ROOT, "a"), B =
Fqn.fromRelativeElements(Fqn.ROOT, "b"), C = Fqn.fromRelativeElements(Fqn.ROOT,
"c");
- try
- {
- Set<Object> nameSet = new HashSet<Object>();
- nameSet.add(A.getLastElement());
- nameSet.add(B.getLastElement());
- nameSet.add(C.getLastElement());
-
- cache1 = new
UnitTestCacheFactory().createCache(buildConf(NodeLockingScheme.PESSIMISTIC,
"cache1", false, false, true));
-
- cache1.put(A, "k", "v");
- cache1.put(B, "k", "v");
- cache1.put(C, "k", "v");
- assert cache1.getNode(Fqn.ROOT).getChildrenNames().equals(nameSet);
-
- cache1.evict(A);
-
- cache2 = new
UnitTestCacheFactory().createCache(buildConf(NodeLockingScheme.PESSIMISTIC,
"cache2", false, false, true));
- assert cache2.getRoot().getChildrenNames().equals(nameSet) : "Expecting
" + nameSet + " but got " + cache2.getRoot().getChildrenNames();
- }
- finally
- {
- TestingUtil.killCaches(cache1, cache2);
- }
+ doTest(NodeLockingScheme.PESSIMISTIC, false);
}
public void testStateTransferOfPassivatedPartialState() throws Exception
Show replies by date