You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2003/01/14 15:03:30 UTC

cvs commit: jakarta-tapestry/junit/src/net/sf/tapestry/junit/utils TestAdaptorRegistry.java

hlship      2003/01/14 06:03:30

  Modified:    junit/src/net/sf/tapestry/junit/utils Tag: hship-2-3
                        TestAdaptorRegistry.java
  Log:
  Add test for new handling of object arrays.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +8 -6      jakarta-tapestry/junit/src/net/sf/tapestry/junit/utils/Attic/TestAdaptorRegistry.java
  
  Index: TestAdaptorRegistry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/junit/src/net/sf/tapestry/junit/utils/Attic/TestAdaptorRegistry.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- TestAdaptorRegistry.java	2 Jan 2003 13:25:53 -0000	1.1.2.1
  +++ TestAdaptorRegistry.java	14 Jan 2003 14:03:30 -0000	1.1.2.2
  @@ -38,6 +38,7 @@
           result.register(Serializable.class, "SERIALIZABLE");
           result.register(int[].class, "INT[]");
           result.register(double.class, "DOUBLE");
  +        result.register(Number[].class, "NUMBER[]");
   
           return result;
       }
  @@ -71,11 +72,12 @@
   
       public void testObjectSubclassArray()
       {
  -        // This is likely to change soon!  The superclass of Foo[]
  -        // is defined by the JVM as Object but a more natural
  -        // search path is Foo[] -> Object[] -> Object
  -
  -        expect("SERIALIZABLE", String[].class);
  +        expect("OBJECT[]", String[].class);
  +    }
  +    
  +    public void testRegisteredSubclassArray()
  +    {
  +    	expect("NUMBER[]", Number[].class);
       }
   
       public void testScalarArrayMatch()