[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer ...
Manik Surtani
msurtani at jboss.com
Sat Dec 30 12:50:07 EST 2006
User: msurtani
Date: 06/12/30 12:50:07
Modified: tests-50/functional/org/jboss/cache/pojo/statetransfer
ReplicatedTest.java
Log:
Major changes to restructure cache and node object model
Revision Changes Path
1.3 +6 -4 JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/ReplicatedTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/ReplicatedTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- ReplicatedTest.java 31 Oct 2006 11:07:18 -0000 1.2
+++ ReplicatedTest.java 30 Dec 2006 17:50:07 -0000 1.3
@@ -22,11 +22,12 @@
package org.jboss.cache.pojo.statetransfer;
-import junit.framework.TestCase;
import junit.framework.Test;
+import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.jboss.cache.CacheImpl;
import org.jboss.cache.pojo.PojoCache;
import org.jboss.cache.pojo.PojoCacheFactory;
import org.jboss.cache.pojo.test.Person;
@@ -34,6 +35,7 @@
/**
* Simple replicated test for state transfer
+ *
* @author Ben Wang
*/
public class ReplicatedTest extends TestCase
@@ -89,14 +91,14 @@
Person ben = createPerson("/person/test1", "Ben Wang", 40);
System.out.println("\n*** I ***");
- System.out.println(((org.jboss.cache.TreeCacheProxyImpl)cache.getCache()).printDetails());
+ System.out.println(((CacheImpl) cache.getCache()).printDetails());
cache1 = PojoCacheFactory.createCache(configFile, toStart);
cache1.start();
System.out.println("\n*** II ***");
- System.out.println(((org.jboss.cache.TreeCacheProxyImpl)cache1.getCache()).printDetails());
+ System.out.println(((CacheImpl) cache1.getCache()).printDetails());
- Person p = (Person)cache1.find("/person/test1");
+ Person p = (Person) cache1.find("/person/test1");
log.info("testSimple() ....");
assertEquals("Ben Wang", ben.getName());
More information about the jboss-cvs-commits
mailing list