[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/util ...
Manik Surtani
msurtani at jboss.com
Sat Dec 30 14:48:48 EST 2006
User: msurtani
Date: 06/12/30 14:48:48
Modified: tests-50/functional/org/jboss/cache/pojo/util
MethodCallTest.java
Log:
Genericised, autoboxed
Revision Changes Path
1.5 +4 -11 JBossCache/tests-50/functional/org/jboss/cache/pojo/util/MethodCallTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MethodCallTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/util/MethodCallTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- MethodCallTest.java 10 Jul 2006 02:09:28 -0000 1.4
+++ MethodCallTest.java 30 Dec 2006 19:48:48 -0000 1.5
@@ -7,22 +7,15 @@
package org.jboss.cache.pojo.util;
-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.aop.InstanceAdvisor;
-import org.jboss.aop.ClassInstanceAdvisor;
-import org.jboss.aop.advice.Interceptor;
-import org.jboss.cache.pojo.interceptors.dynamic.CacheFieldInterceptor;
-import org.jboss.cache.pojo.MethodDeclarations;
-import org.jboss.cache.pojo.PojoUtil;
import java.lang.reflect.Method;
/**
- *
* @author Ben Wang
*/
@@ -50,11 +43,11 @@
public void testBasic() throws Throwable
{
- Integer i = new Integer(1);
+ Integer i = 1;
Method method = Foo.class.getDeclaredMethod("setFoo",
- new Class[] {Integer.class});
+ new Class[]{Integer.class});
- Object[] args = new Object[] {i};
+ Object[] args = new Object[]{i};
Foo foo = new Foo();
MethodCall mc = new MethodCall(method, args, foo);
More information about the jboss-cvs-commits
mailing list