Author: manik.surtani(a)jboss.com
Date: 2008-10-13 05:24:31 -0400 (Mon, 13 Oct 2008)
New Revision: 15334
Modified:
core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java
Log:
Upgraded to use a non-deprecated factory constructor
Modified:
core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java
===================================================================
---
core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java 2008-10-13
09:17:58 UTC (rev 15333)
+++
core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java 2008-10-13
09:24:31 UTC (rev 15334)
@@ -67,7 +67,7 @@
public void testActivationDeactivation() throws Exception {
// Set up a cache to monitor affects of starting the region
- Cache remoteCache =
DefaultCacheFactory.getInstance().createCache(SharedCacheInstanceManager.DEFAULT_CACHE_RESOURCE,
false);
+ Cache remoteCache = new
DefaultCacheFactory().createCache(SharedCacheInstanceManager.DEFAULT_CACHE_RESOURCE,
false);
// This test assumes replication; verify that's correct
assertEquals("Cache is REPL_SYNC", "REPL_SYNC",
remoteCache.getConfiguration().getCacheModeString());
Show replies by date