From 1d919d9d53056acc8c95e5853c1913f2414f4b00 Mon Sep 17 00:00:00 2001 From: Manik Surtani Date: Mon, 13 Oct 2008 09:24:31 +0000 Subject: [PATCH] Upgraded to use a non-deprecated factory constructor git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15334 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java b/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java index 20891f4502..4eb09458f6 100644 --- a/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java +++ b/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2/AbstractRegionImplTestCase.java @@ -67,7 +67,7 @@ public abstract class AbstractRegionImplTestCase extends AbstractJBossCacheTestC 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());