[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/replicated ...
Vladmir Blagojevic
vladimir.blagojevic at jboss.com
Wed Jan 10 11:58:43 EST 2007
User: vblagojevic
Date: 07/01/10 11:58:43
Modified: tests/functional/org/jboss/cache/replicated
AsyncReplTest.java
Log:
JBCACHE-840 (work in progress)
Revision Changes Path
1.15 +4 -2 JBossCache/tests/functional/org/jboss/cache/replicated/AsyncReplTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AsyncReplTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/replicated/AsyncReplTest.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- AsyncReplTest.java 3 Jan 2007 04:03:48 -0000 1.14
+++ AsyncReplTest.java 10 Jan 2007 16:58:43 -0000 1.15
@@ -17,6 +17,8 @@
import org.jboss.cache.Cache;
import org.jboss.cache.CacheImpl;
import org.jboss.cache.Fqn;
+import org.jboss.cache.config.Configuration.CacheMode;
+import org.jboss.cache.factories.UnitTestCacheFactory;
import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.misc.TestingUtil;
@@ -26,7 +28,7 @@
* Unit test for replicated async CacheImpl. Use locking and multiple threads to test
* concurrent access to the tree.
*
- * @version $Revision: 1.14 $
+ * @version $Revision: 1.15 $
*/
public class AsyncReplTest extends TestCase
{
@@ -52,7 +54,7 @@
private CacheImpl createCache(String name) throws Exception
{
CacheImpl cache = new CacheImpl();
- cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replAsync-service.xml"));
+ cache.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_ASYNC));
cache.getConfiguration().setClusterName(name);
// Call the hook that allows mux integration
More information about the jboss-cvs-commits
mailing list