[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer ...
Manik Surtani
msurtani at jboss.com
Sat Dec 30 14:48:49 EST 2006
User: msurtani
Date: 06/12/30 14:48:49
Modified: tests-50/functional/org/jboss/cache/pojo/statetransfer
StateTransferAopTestBase.java
Log:
Genericised, autoboxed
Revision Changes Path
1.7 +16 -16 JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/StateTransferAopTestBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: StateTransferAopTestBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/StateTransferAopTestBase.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- StateTransferAopTestBase.java 15 Nov 2006 15:23:05 -0000 1.6
+++ StateTransferAopTestBase.java 30 Dec 2006 19:48:49 -0000 1.7
@@ -11,19 +11,19 @@
import junit.framework.TestCase;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.jboss.cache.CacheException;
-import org.jboss.cache.Fqn;
import org.jboss.cache.Cache;
+import org.jboss.cache.CacheException;
import org.jboss.cache.CacheSPI;
-import org.jboss.cache.pojo.PojoCache;
-import org.jboss.cache.pojo.PojoCacheFactory;
-import org.jboss.cache.pojo.test.Address;
-import org.jboss.cache.pojo.test.Person;
+import org.jboss.cache.Fqn;
import org.jboss.cache.config.CacheLoaderConfig;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.loader.CacheLoader;
import org.jboss.cache.misc.TestingUtil;
+import org.jboss.cache.pojo.PojoCache;
+import org.jboss.cache.pojo.PojoCacheFactory;
+import org.jboss.cache.pojo.test.Address;
+import org.jboss.cache.pojo.test.Person;
import org.jboss.cache.xml.XmlHelper;
import org.w3c.dom.Element;
@@ -39,7 +39,7 @@
* Tests state transfer in PojoCache.
*
* @author <a href="mailto://brian.stansberry@jboss.com">Brian Stansberry</a>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public abstract class StateTransferAopTestBase extends TestCase
{
@@ -64,9 +64,9 @@
private Address addr1;
private Address addr2;
- public static final Integer TWENTY = new Integer(20);
- public static final Integer TWENTYFIVE = new Integer(25);
- public static final Integer FORTY = new Integer(40);
+ public static final Integer TWENTY = 20;
+ public static final Integer TWENTYFIVE = 25;
+ public static final Integer FORTY = 40;
private Log log = LogFactory.getLog(StateTransferAopTestBase.class);
@@ -226,7 +226,7 @@
TestingUtil.blockUntilViewsReceived(new Cache[]
{cache1.getCache(), cache2.getCache()}, 60000);
- CacheLoader loader = ((CacheSPI)cache2.getCache()).getCacheLoader();
+ CacheLoader loader = ((CacheSPI) cache2.getCache()).getCacheLoader();
Map map = loader.get(A_B_1_f);
if (map != null)
@@ -726,7 +726,7 @@
joe = new Person();
joe.setName("Joe");
- joe.setAge(TWENTY.intValue());
+ joe.setAge(TWENTY);
joe.setAddress(addr1);
Set skills = new HashSet();
skills.add("TENNIS");
@@ -735,7 +735,7 @@
jane = new Person();
jane.setName("Jane");
- jane.setAge(TWENTYFIVE.intValue());
+ jane.setAge(TWENTYFIVE);
jane.setAddress(addr1);
skills = new HashSet();
skills.add("JUJITSU");
@@ -744,7 +744,7 @@
bob = new Person();
bob.setName("Bob");
- bob.setAge(FORTY.intValue());
+ bob.setAge(FORTY);
bob.setAddress(addr2);
skills = new HashSet();
skills.add("LANGUAGES");
@@ -753,7 +753,7 @@
jill = new Person();
jill.setName("Jill");
- jill.setAge(TWENTYFIVE.intValue());
+ jill.setAge(TWENTYFIVE);
jill.setAddress(addr2);
skills = new HashSet();
skills.add("FORTRAN");
@@ -1031,7 +1031,7 @@
throws Exception
{
this.cache = createCache(name, sync, true, false, !activateRoot);
- tm = ((CacheSPI)cache.getCache()).getTransactionManager();
+ tm = ((CacheSPI) cache.getCache()).getTransactionManager();
if (tm == null)
throw new IllegalStateException("TransactionManager required");
this.semaphore = semaphore;
More information about the jboss-cvs-commits
mailing list