commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-commons/betwixt/src/test/org/apache/commons/betwixt TestDescriptors.java
Date Tue, 27 Apr 2004 20:00:04 GMT
rdonkin     2004/04/27 13:00:04

  Modified:    betwixt/src/test/org/apache/commons/betwixt Tag:
                        REFACTORING-BRANCH_2004-01-13 TestDescriptors.java
  Log:
  Added support for array property setters
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.4.2.4   +17 -4     jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/TestDescriptors.java
  
  Index: TestDescriptors.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/TestDescriptors.java,v
  retrieving revision 1.4.2.3
  retrieving revision 1.4.2.4
  diff -u -r1.4.2.3 -r1.4.2.4
  --- TestDescriptors.java	19 Apr 2004 21:31:13 -0000	1.4.2.3
  +++ TestDescriptors.java	27 Apr 2004 20:00:04 -0000	1.4.2.4
  @@ -157,5 +157,18 @@
           returned = descriptor.getElementDescriptor("Barney");
           assertTrue("Barney is not a Flintstone", returned == null);
       }
  +    
  +    public void testGetElementDescriptorByNameNullMatch() 
  +    {
  +        ElementDescriptor descriptor = new ElementDescriptor("Flintstones");
  +        descriptor.addElementDescriptor(new ElementDescriptor("Freddy"));
  +        descriptor.addElementDescriptor(new ElementDescriptor("Wilma"));
  +        descriptor.addElementDescriptor(new ElementDescriptor("Pebbles"));
  +        descriptor.addElementDescriptor(new ElementDescriptor());
  +        
  +        ElementDescriptor returned = descriptor.getElementDescriptor("NotFreddy");
  +        assertTrue("NotFreddy matched", returned != null);
  +        assertEquals("NotFreddy match by null descriptor", null, returned.getLocalName());
  +    }
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message