commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1210635 - /commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/Digester153TestCase.java
Date Mon, 05 Dec 2011 21:09:52 GMT
Author: simonetripodi
Date: Mon Dec  5 21:09:52 2011
New Revision: 1210635

URL: http://svn.apache.org/viewvc?rev=1210635&view=rev
Log:
restored constructorWithClassDefinedInAttribute test

Modified:
    commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/Digester153TestCase.java

Modified: commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/Digester153TestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/Digester153TestCase.java?rev=1210635&r1=1210634&r2=1210635&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/Digester153TestCase.java
(original)
+++ commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/Digester153TestCase.java
Mon Dec  5 21:09:52 2011
@@ -179,23 +179,24 @@ public final class Digester153TestCase
 
         digester.parse( getClass().getResourceAsStream( "BasicConstructor.xml" ) );
     }
+    */
 
     @Test
     public void constructorWithClassDefinedInAttribute()
         throws Exception
     {
         ObjectCreateRule createRule = new ObjectCreateRule( null, "type" );
-        createRule.addConstructorArgument( "boolean", boolean.class );
-        createRule.addConstructorArgument( "double", double.class );
+        createRule.setConstructorArgumentTypes( boolean.class, double.class );
 
         Digester digester = new Digester();
         digester.addRule( "toplevel/bean", createRule );
+        digester.addCallParam( "toplevel/bean", 0, "boolean" );
+        digester.addCallParam( "toplevel/bean", 1, "double" );
 
         TestBean bean = digester.parse( getClass().getResourceAsStream( "AttributeDefinedConstructor.xml"
) );
 
         assertTrue( bean.getBooleanProperty() );
         assertEquals( 9.99D, bean.getDoubleProperty(), 0 );
     }
-    */
 
 }



Mime
View raw message