Author: bodewig
Date: Tue Aug 7 20:55:41 2007
New Revision: 563734
URL: http://svn.apache.org/viewvc?view=rev&rev=563734
Log:
re-add single-arg signature of assertLogContaining, allows JDependTest to
compile
Modified:
ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
URL:
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java?view=diff&rev=563734&r1=563733&r2=563734
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java
(original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/BuildFileTest.java Tue
Aug 7 20:55:41 2007
@@ -117,6 +117,14 @@
/**
* Assert that the given substring is in the output messages.
+ * @since Ant1.7
+ */
+ public void assertOutputContaining(String substring) {
+ assertOutputContaining(null, substring);
+ }
+
+ /**
+ * Assert that the given substring is in the output messages.
* @param message Print this message if the test fails. Defaults to
* a meaningful text if <tt>null</tt> is passed.
* @since Ant1.7
@@ -139,7 +147,7 @@
String realOutput = getOutput();
String realMessage = (message != null)
? message
- : "expecting output to contain \"" + substring + "\" output was
\"" + realOutput + "\"";
+ : "expecting output to not contain \"" + substring + "\" output
was \"" + realOutput + "\"";
assertFalse(realMessage, realOutput.indexOf(substring) >= 0);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]