Author: mircea.markus
Date: 2008-08-27 08:32:37 -0400 (Wed, 27 Aug 2008)
New Revision: 6624
Modified:
core/trunk/src/test/java/org/jboss/cache/api/NodeSPITest.java
Log:
this is a pessimistic scenario test
Modified: core/trunk/src/test/java/org/jboss/cache/api/NodeSPITest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/api/NodeSPITest.java 2008-08-27 10:24:04 UTC
(rev 6623)
+++ core/trunk/src/test/java/org/jboss/cache/api/NodeSPITest.java 2008-08-27 12:32:37 UTC
(rev 6624)
@@ -4,6 +4,7 @@
import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.Fqn;
import org.jboss.cache.NodeSPI;
+import org.jboss.cache.config.Configuration;
import static org.testng.AssertJUnit.*;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
@@ -23,7 +24,9 @@
@BeforeMethod(alwaysRun = true)
public void setUp()
{
- cache = (CacheSPI<Object, Object>) new DefaultCacheFactory<Object,
Object>().createCache();
+ cache = (CacheSPI<Object, Object>) new DefaultCacheFactory<Object,
Object>().createCache(false);
+
cache.getConfiguration().setNodeLockingScheme(Configuration.NodeLockingScheme.PESSIMISTIC);
+ cache.start();
root = cache.getRoot();
}
Show replies by date