commons-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1210642&view=rev
Log:
restored basicConstructorWithWrongParameters() test method

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=1210642&r1=1210641&r2=1210642&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:19:15 2011
@@ -28,6 +28,7 @@ import org.apache.commons.digester3.bind
 import org.apache.commons.digester3.binder.RulesModule;
 import org.apache.commons.digester3.xmlrules.FromXmlRulesModule;
 import org.junit.Test;
+import org.xml.sax.SAXParseException;
 
 /**
  * {@link https://issues.apache.org/jira/browse/DIGESTER-153}
@@ -166,20 +167,20 @@ public final class Digester153TestCase
         assertFalse( bean.getBooleanProperty() );
         assertEquals( 0D, bean.getDoubleProperty(), 0 );
     }
+    */
 
     @Test( expected = SAXParseException.class )
     public void basicConstructorWithWrongParameters()
         throws Exception
     {
         ObjectCreateRule createRule = new ObjectCreateRule( TestBean.class );
-        createRule.addConstructorArgument( "notfound1", boolean.class );
+        createRule.setConstructorArgumentTypes( boolean.class );
 
         Digester digester = new Digester();
         digester.addRule( "toplevel/bean", createRule );
 
         digester.parse( getClass().getResourceAsStream( "BasicConstructor.xml" ) );
     }
-    */
 
     @Test
     public void constructorWithClassDefinedInAttribute()



Mime
View raw message