[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/marshall ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 05:03:54 EDT 2006
User: msurtani
Date: 06/07/20 05:03:54
Modified: tests/functional/org/jboss/cache/marshall
AsyncReplTest.java LocalTest.java
Log:
Fixed some broken UTs to use the new xml parsers, cache factories, etc.
Revision Changes Path
1.6 +3 -3 JBossCache/tests/functional/org/jboss/cache/marshall/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/marshall/AsyncReplTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- AsyncReplTest.java 8 Jun 2006 00:41:14 -0000 1.5
+++ AsyncReplTest.java 20 Jul 2006 09:03:54 -0000 1.6
@@ -26,7 +26,7 @@
/**
* Test marshalling for async mode.
* @author Ben Wang
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class AsyncReplTest extends TestCase {
TreeCache cache1, cache2;
@@ -63,9 +63,9 @@
TreeCache tree=new TreeCache();
PropertyConfigurator config=new PropertyConfigurator();
config.configure(tree, "META-INF/replAsync-service.xml"); // read in generic replAsync xml
- tree.setClusterName(name);
+ tree.getConfiguration().setClusterName(name);
// Use marshaller
- tree.setUseMarshalling(true);
+ tree.getConfiguration().setUseRegionBasedMarshalling(true);
tree.createService();
tree.startService();
return tree;
1.6 +5 -4 JBossCache/tests/functional/org/jboss/cache/marshall/LocalTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/marshall/LocalTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- LocalTest.java 7 Jun 2006 22:28:08 -0000 1.5
+++ LocalTest.java 20 Jul 2006 09:03:54 -0000 1.6
@@ -5,6 +5,7 @@
import junit.framework.TestSuite;
import org.jboss.cache.Fqn;
import org.jboss.cache.TreeCache;
+import org.jboss.cache.config.Configuration;
import org.jboss.cache.lock.IsolationLevel;
import javax.transaction.Transaction;
@@ -16,7 +17,7 @@
/**
* Simple functional tests for LegacyTreeCacheMarshaller
* @author Ben Wang
- * @version $Id: LocalTest.java,v 1.5 2006/06/07 22:28:08 msurtani Exp $
+ * @version $Id: LocalTest.java,v 1.6 2006/07/20 09:03:54 msurtani Exp $
*/
public class LocalTest extends TestCase {
TreeCache cache=null;
@@ -30,9 +31,9 @@
protected void setUp() throws Exception {
super.setUp();
cache=new TreeCache();
- cache.setCacheMode(TreeCache.LOCAL);
- cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
- cache.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
+ cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
+ cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
+ cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
cache.createService();
cache.startService();
ex=null;
More information about the jboss-cvs-commits
mailing list