Author: mircea.markus
Date: 2008-08-27 09:21:43 -0400 (Wed, 27 Aug 2008)
New Revision: 6626
Modified:
core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java
Log:
fixed test
Modified:
core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java 2008-08-27
12:34:27 UTC (rev 6625)
+++
core/trunk/src/test/java/org/jboss/cache/factories/InterceptorChainFactoryTest.java 2008-08-27
13:21:43 UTC (rev 6626)
@@ -10,6 +10,7 @@
import static org.jboss.cache.config.Configuration.NodeLockingScheme.MVCC;
import static org.jboss.cache.config.Configuration.NodeLockingScheme.OPTIMISTIC;
import org.jboss.cache.config.EvictionConfig;
+import org.jboss.cache.config.Configuration;
import org.jboss.cache.interceptors.*;
import org.jboss.cache.interceptors.base.CommandInterceptor;
import org.jboss.cache.loader.DummyInMemoryCacheLoader;
@@ -32,9 +33,11 @@
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception
{
- cache = (CacheSPI) new DefaultCacheFactory<Object,
Object>().createCache(false);
- cache.getConfiguration().setCacheMode(LOCAL);
- cache.getConfiguration().setUseLazyDeserialization(false);
+ Configuration configuration = new Configuration();
+ configuration.setCacheMode(LOCAL);
+ configuration.setNodeLockingScheme(Configuration.NodeLockingScheme.PESSIMISTIC);
+ configuration.setUseLazyDeserialization(false);
+ cache = (CacheSPI) new DefaultCacheFactory<Object,
Object>().createCache(configuration,false);
}
@AfterMethod(alwaysRun = true)
@@ -484,7 +487,8 @@
}
}
);
- InterceptorChain chain =
getInterceptorChainFactory(cache).buildInterceptorChain();
+ InterceptorChainFactory factory = getInterceptorChainFactory(cache);
+ InterceptorChain chain = factory.buildInterceptorChain();
List<CommandInterceptor> list = chain.asList();
Iterator<CommandInterceptor> interceptors = list.iterator();
Show replies by date