[hibernate-commits] Hibernate SVN: r15334 - core/trunk/cache-jbosscache2/src/test/java/org/hibernate/test/cache/jbc2.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Oct 13 05:24:31 EDT 2008


Author: manik.surtani at 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());




More information about the hibernate-commits mailing list