You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sk...@apache.org on 2005/05/26 22:40:35 UTC
svn commit: r178678 -
/jakarta/commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java
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