FileDocCategorySizeDatePackage
ExtendedTaskdefTest.javaAPI DocApache Ant 1.702127Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant

ExtendedTaskdefTest

public class ExtendedTaskdefTest extends BuildFileTest
created 16-Mar-2006 12:25:12

Fields Summary
Constructors Summary
public ExtendedTaskdefTest(String name)
Constructor for the BuildFileTest object.

param
name string to pass up to TestCase constructor

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/core/extended-taskdef.xml");
    
protected voidtearDown()
Automatically calls the target called "tearDown" from the build file tested if it exits.

This allows to use Ant tasks directly in the build file to clean up after each test. Note that no "setUp" target is automatically called, since it's trivial to have a test target depend on it.

        super.tearDown();
        executeTarget("teardown");
    
public voidtestRun()

        expectBuildExceptionContaining("testRun",
                "exception thrown by the subclass",
                "executing the Foo task");
    
public voidtestRun2()

        expectBuildExceptionContaining("testRun2",
                "exception thrown by the subclass",
                "executing the Foo task");