commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons/digester/src/test/org/apache/commons/digester RuleTestCase.java
Date Wed, 31 Jul 2002 10:48:08 GMT
jstrachan    2002/07/31 03:48:08

  Modified:    digester/src/test/org/apache/commons/digester
                        RuleTestCase.java
  Log:
  patched the test case so that it works properly. The test was using the wrong classes for
primitive types. Integer.class is different from int.class, ditto for Float/float and Boolean/boolean.
  
  Revision  Changes    Path
  1.19      +7 -7      jakarta-commons/digester/src/test/org/apache/commons/digester/RuleTestCase.java
  
  Index: RuleTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/src/test/org/apache/commons/digester/RuleTestCase.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- RuleTestCase.java	29 Jul 2002 21:05:15 -0000	1.18
  +++ RuleTestCase.java	31 Jul 2002 10:48:08 -0000	1.19
  @@ -695,7 +695,7 @@
           // Configure the digester as required
           digester.addObjectCreate("employee", Employee.class);
           // try out primitive convertion
  -        digester.addCallMethod("employee", "setAge", 1, new Class[] {Integer.class});
  +        digester.addCallMethod("employee", "setAge", 1, new Class[] {int.class});
           digester.addCallParam("employee/age", 0);         
                   
           // Parse our test input
  @@ -714,7 +714,7 @@
           digester = new Digester();
           // Configure the digester as required
           digester.addObjectCreate("employee", Employee.class);      
  -        digester.addCallMethod("employee", "setActive", 1, new Class[] {Boolean.class});
  +        digester.addCallMethod("employee", "setActive", 1, new Class[] {boolean.class});
           digester.addCallParam("employee/active", 0);    
                   
           // Parse our test input
  @@ -733,7 +733,7 @@
           digester = new Digester();            
           // Configure the digester as required
           digester.addObjectCreate("employee", Employee.class); 
  -        digester.addCallMethod("employee", "setSalary", 1, new Class[] {Float.class});
  +        digester.addCallMethod("employee", "setSalary", 1, new Class[] {float.class});
           digester.addCallParam("employee/salary", 0);    
                   
           // Parse our test input
  
  
  

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


Mime
View raw message