velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject cvs commit: jakarta-velocity/src/java/org/apache/velocity/test IntrospectorTestCase.java
Date Sun, 09 Sep 2001 21:50:03 GMT
geirm       01/09/09 14:50:02

  Modified:    src/java/org/apache/velocity/test IntrospectorTestCase.java
  Log:
  Final bit of change for seperable runtime instances, also brings
  introspection into the instance (as all other resources are...)
  
  Revision  Changes    Path
  1.9       +12 -12    jakarta-velocity/src/java/org/apache/velocity/test/IntrospectorTestCase.java
  
  Index: IntrospectorTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/IntrospectorTestCase.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- IntrospectorTestCase.java	2001/08/11 18:58:49	1.8
  +++ IntrospectorTestCase.java	2001/09/09 21:50:02	1.9
  @@ -58,7 +58,7 @@
   
   import java.lang.reflect.Method;
   
  -import org.apache.velocity.util.introspection.Introspector;
  +import org.apache.velocity.runtime.RuntimeSingleton;
   
   import junit.framework.TestCase;
   
  @@ -72,7 +72,7 @@
    * for now.
    *
    * @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
  - * @version $Id: IntrospectorTestCase.java,v 1.8 2001/08/11 18:58:49 geirm Exp $
  + * @version $Id: IntrospectorTestCase.java,v 1.9 2001/09/09 21:50:02 geirm Exp $
    */
   public class IntrospectorTestCase extends BaseTestCase
   {
  @@ -114,7 +114,7 @@
               // Test boolean primitive.
               Object[] booleanParams = { new Boolean(true) };
               type = "boolean";
  -            method = Introspector.getMethod(
  +            method = RuntimeSingleton.getIntrospector().getMethod(
                   MethodProvider.class, type + "Method", booleanParams);
               result = (String) method.invoke(mp, booleanParams);
               
  @@ -124,7 +124,7 @@
               // Test byte primitive.
               Object[] byteParams = { new Byte("1") };
               type = "byte";
  -            method = Introspector.getMethod(
  +            method = RuntimeSingleton.getIntrospector().getMethod(
                   MethodProvider.class, type + "Method", byteParams);
               result = (String) method.invoke(mp, byteParams);
   
  @@ -134,7 +134,7 @@
               // Test char primitive.
               Object[] characterParams = { new Character('a') };
               type = "character";
  -            method = Introspector.getMethod(
  +            method = RuntimeSingleton.getIntrospector().getMethod(
                   MethodProvider.class, type + "Method", characterParams);
               result = (String) method.invoke(mp, characterParams);
   
  @@ -144,7 +144,7 @@
               // Test double primitive.
               Object[] doubleParams = { new Double((double)1) };
               type = "double";
  -            method = Introspector.getMethod(
  +            method = RuntimeSingleton.getIntrospector().getMethod(
                   MethodProvider.class, type + "Method", doubleParams);
               result = (String) method.invoke(mp, doubleParams);
   
  @@ -154,7 +154,7 @@
               // Test float primitive.
               Object[] floatParams = { new Float((float)1) };
               type = "float";
  -            method = Introspector.getMethod(
  +            method = RuntimeSingleton.getIntrospector().getMethod(
                   MethodProvider.class, type + "Method", floatParams);
               result = (String) method.invoke(mp, floatParams);
   
  @@ -164,7 +164,7 @@
               // Test integer primitive.
               Object[] integerParams = { new Integer((int)1) };
               type = "integer";
  -            method = Introspector.getMethod(
  +            method = RuntimeSingleton.getIntrospector().getMethod(
                   MethodProvider.class, type + "Method", integerParams);
               result = (String) method.invoke(mp, integerParams);
   
  @@ -174,7 +174,7 @@
               // Test long primitive.
               Object[] longParams = { new Long((long)1) };
               type = "long";
  -            method = Introspector.getMethod(
  +            method = RuntimeSingleton.getIntrospector().getMethod(
                   MethodProvider.class, type + "Method", longParams);
               result = (String) method.invoke(mp, longParams);
   
  @@ -184,7 +184,7 @@
               // Test short primitive.
               Object[] shortParams = { new Short((short)1) };
               type = "short";
  -            method = Introspector.getMethod(
  +            method = RuntimeSingleton.getIntrospector().getMethod(
                   MethodProvider.class, type + "Method", shortParams);
               result = (String) method.invoke(mp, shortParams);
           
  @@ -195,7 +195,7 @@
   
               Object[] params = {};
              
  -            method = Introspector.getMethod(
  +            method = RuntimeSingleton.getIntrospector().getMethod(
                   MethodProvider.class, "untouchable", params);
   
               if (method != null)
  @@ -203,7 +203,7 @@
   
               // Test really untouchable
   
  -            method = Introspector.getMethod(
  +            method = RuntimeSingleton.getIntrospector().getMethod(
                   MethodProvider.class, "reallyuntouchable", params);
   
               if (method != null)
  
  
  

Mime
View raw message