adammurdoch 02/05/17 22:05:31
Modified: framework/src/test/org/apache/myrmidon
AbstractTaskTestCase.java
Log:
Fix compile errors.
Revision Changes Path
1.4 +13 -2
jakarta-ant-myrmidon/framework/src/test/org/apache/myrmidon/AbstractTaskTestCase.java
Index: AbstractTaskTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-ant-myrmidon/framework/src/test/org/apache/myrmidon/AbstractTaskTestCase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AbstractTaskTestCase.java 18 May 2002 04:17:04 -0000 1.3
+++ AbstractTaskTestCase.java 18 May 2002 05:05:31 -0000 1.4
@@ -26,7 +26,7 @@
* A base class for test cases which need to execute tasks.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Adam Murdoch</a>
- * @version $Revision: 1.3 $ $Date: 2002/05/18 04:17:04 $
+ * @version $Revision: 1.4 $ $Date: 2002/05/18 05:05:31 $
*
* @todo - Move the guts of AbstractProjectTestCase back to this class,
* and add a specialised project builder.
@@ -60,7 +60,7 @@
{
try
{
- executeTarget( projectFile, targetName, null );
+ executeTarget( projectFile, targetName, null, null );
fail( "target execution did not fail" );
}
catch( Exception e )
@@ -87,6 +87,17 @@
throws Exception
{
executeTarget( projectFile, targetName, props, null );
+ }
+
+ /**
+ * Executes a target in a project, and asserts that it does not fail.
+ */
+ protected void executeTarget( final File projectFile,
+ final String targetName,
+ final TaskListener listener )
+ throws Exception
+ {
+ executeTarget( projectFile, targetName, null, listener );
}
/**
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>