[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/mgmt ...
Vladmir Blagojevic
vladimir.blagojevic at jboss.com
Wed Jan 10 14:09:29 EST 2007
User: vblagojevic
Date: 07/01/10 14:09:29
Modified: tests/functional/org/jboss/cache/mgmt InvalidationTest.java
Log:
JBCACHE-840 (work in progress)
Revision Changes Path
1.11 +4 -3 JBossCache/tests/functional/org/jboss/cache/mgmt/InvalidationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: InvalidationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/InvalidationTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- InvalidationTest.java 30 Dec 2006 19:48:46 -0000 1.10
+++ InvalidationTest.java 10 Jan 2007 19:09:28 -0000 1.11
@@ -6,6 +6,8 @@
import org.jboss.cache.CacheImpl;
import org.jboss.cache.Fqn;
import org.jboss.cache.config.Configuration;
+import org.jboss.cache.config.Configuration.CacheMode;
+import org.jboss.cache.factories.UnitTestCacheFactory;
import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.interceptors.InvalidationInterceptor;
@@ -16,7 +18,7 @@
* Simple functional tests for InvalidationInterceptor statistics
*
* @author Jerry Gauthier
- * @version $Id: InvalidationTest.java,v 1.10 2006/12/30 19:48:46 msurtani Exp $
+ * @version $Id: InvalidationTest.java,v 1.11 2007/01/10 19:09:28 vblagojevic Exp $
*/
public class InvalidationTest extends TestCase
{
@@ -145,8 +147,7 @@
private CacheImpl createCache(String clusterName) throws Exception
{
CacheImpl cache = new CacheImpl();
- XmlConfigurationParser parser = new XmlConfigurationParser();
- Configuration c = parser.parseFile("META-INF/invalidationSync-service.xml");
+ Configuration c = UnitTestCacheFactory.createConfiguration(CacheMode.INVALIDATION_SYNC);
cache.setConfiguration(c);
c.setCacheMode(Configuration.CacheMode.INVALIDATION_SYNC);
c.setExposeManagementStatistics(true);
More information about the jboss-cvs-commits
mailing list