stevel 2005/03/09 14:56:39
Modified: src/testcases/org/apache/tools/ant BuildFileTest.java
Log:
Apt testing. We can say this works now :)
I do worry that the example Java1.5 code looks just like STL C++.
We also need to compare factorypath with classpath behaviour. But we can demo
that you can add new factories
Revision Changes Path
1.34 +11 -0 ant/src/testcases/org/apache/tools/ant/BuildFileTest.java
Index: BuildFileTest.java
===================================================================
RCS file:
/home/cvs/ant/src/testcases/org/apache/tools/ant/BuildFileTest.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- BuildFileTest.java 10 Feb 2005 20:56:31 -0000 1.33
+++ BuildFileTest.java 9 Mar 2005 22:56:39 -0000 1.34
@@ -82,6 +82,17 @@
}
/**
+ * Assert that the given substring is in the output messages
+ * @since Ant1.7
+ */
+
+ protected void assertOutputContaining(String substring) {
+ String realOutput = getOutput();
+ assertTrue("expecting output to contain \"" + substring + "\" output
was \""
+ + realOutput + "\"",
+ realOutput.indexOf(substring) >= 0);
+ }
+ /**
* Assert that the given message has been logged with a priority
* <= INFO when running the given target.
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]