FileDocCategorySizeDatePackage
AntStructureTest.javaAPI DocApache Ant 1.703545Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.taskdefs

AntStructureTest

public class AntStructureTest extends org.apache.tools.ant.BuildFileTest

Fields Summary
Constructors Summary
public AntStructureTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/taskdefs/antstructure.xml");
    
public voidtearDown()

        executeTarget("tearDown");
    
public voidtest1()

        expectBuildException("test1", "required argument not specified");
    
public voidtestCustomPrinter()

        executeTarget("testCustomPrinter");
        // can't access the booleans in MyPrinter here (even if they
        // were static) since the MyPrinter instance that was used in
        // the test has likely been loaded via a different classloader
        // than this class.  Therefore we make the printer assert its
        // state and only check for the tail invocation.
        assertLogContaining(MyPrinter.TAIL_CALLED);