commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject svn commit: r178678 - /jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java
Date Thu, 26 May 2005 20:40:35 GMT
Author: skitching
Date: Thu May 26 13:40:34 2005
New Revision: 178678

URL: http://svn.apache.org/viewcvs?rev=178678&view=rev
Log:
Fix accidental use of java1.5 method.

Modified:
    jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java

Modified: jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java?rev=178678&r1=178677&r2=178678&view=diff
==============================================================================
--- jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java
(original)
+++ jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java
Thu May 26 13:40:34 2005
@@ -179,7 +179,7 @@
             fail("No exception thrown by parse when unknown child element found.");
         } catch(org.xml.sax.SAXParseException e) {
             String msg = e.getMessage();
-            if (msg.contains("badprop")) {
+            if (msg.indexOf("badprop") >= 0) {
                 // ok, this is expected; there is no "setBadprop" method on the
                 // SimpleTestBean class...
             } else {



---------------------------------------------------------------------
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