[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 14:43:13 EDT 2006
User: msurtani
Date: 06/07/20 14:43:13
Modified: tests-50/functional/org/jboss/cache/pojo
LocalConcurrentTest.java LocalTest.java
Log:
migrated to new configurators
Revision Changes Path
1.3 +5 -5 JBossCache/tests-50/functional/org/jboss/cache/pojo/LocalConcurrentTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalConcurrentTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/LocalConcurrentTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- LocalConcurrentTest.java 27 Jun 2006 09:19:31 -0000 1.2
+++ LocalConcurrentTest.java 20 Jul 2006 18:43:13 -0000 1.3
@@ -11,7 +11,7 @@
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
-import org.jboss.cache.TreeCache;
+import org.jboss.cache.config.Configuration;
import org.jboss.cache.lock.UpgradeException;
import org.jboss.cache.pojo.test.Address;
import org.jboss.cache.pojo.test.Person;
@@ -29,13 +29,13 @@
* Local concurrent test for PojoCache. Test attach and detach under load
* and concurrency.
*
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
* @author<a href="mailto:bwang at jboss.org">Ben Wang</a> December 2004
*/
public class LocalConcurrentTest extends TestCase
{
static PojoCache cache_;
- int cachingMode_ = TreeCache.LOCAL;
+ Configuration.CacheMode cachingMode_ = Configuration.CacheMode.LOCAL;
Properties p_;
String oldFactory_ = null;
final String FACTORY = "org.jboss.cache.transaction.DummyContextFactory";
@@ -66,7 +66,7 @@
tx_ = (UserTransaction) new InitialContext(p_).lookup("UserTransaction");
- initCaches(TreeCache.LOCAL);
+ initCaches(Configuration.CacheMode.LOCAL);
nodeList_ = nodeGen(depth_, children_);
log("LocalConcurrentTestCase: cacheMode=TRANSIENT, one cache");
@@ -87,7 +87,7 @@
}
- void initCaches(int caching_mode) throws Exception
+ void initCaches(Configuration.CacheMode caching_mode) throws Exception
{
cachingMode_ = caching_mode;
cache_ = PojoCacheFactory.createInstance("META-INF/local-service.xml");
1.6 +1 -4 JBossCache/tests-50/functional/org/jboss/cache/pojo/LocalTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/LocalTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- LocalTest.java 17 Jul 2006 09:00:59 -0000 1.5
+++ LocalTest.java 20 Jul 2006 18:43:13 -0000 1.6
@@ -6,10 +6,9 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.aop.proxy.ClassProxy;
-import org.jboss.cache.PropertyConfigurator;
+import org.jboss.cache.pojo.test.Address;
import org.jboss.cache.pojo.test.Person;
import org.jboss.cache.pojo.test.Student;
-import org.jboss.cache.pojo.test.Address;
import java.util.ArrayList;
import java.util.HashMap;
@@ -40,8 +39,6 @@
log.info("setUp() ....");
String configFile = "META-INF/local-service.xml";
cache_ = PojoCacheFactory.createInstance(configFile);
- PropertyConfigurator config = new PropertyConfigurator();
- config.configure(cache_, configFile); // read in generic replSync xml
cache_.start();
}
More information about the jboss-cvs-commits
mailing list