FileDocCategorySizeDatePackage
TaskContainerTest.javaAPI DocApache Ant 1.702178Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant

TaskContainerTest

public class TaskContainerTest extends BuildFileTest

Fields Summary
Constructors Summary
public TaskContainerTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/core/taskcontainer.xml");
    
public voidtearDown()

        executeTarget("cleanup");
    
public voidtestCaseInsensitive()

        executeTarget("testCaseInsensitive");
        assertTrue("works outside of container",
                   getLog().indexOf("hello ") > -1);
        assertTrue("works inside of container",
                   getLog().indexOf("world") > -1);
    
public voidtestPropertyExpansion()

        executeTarget("testPropertyExpansion");
        assertTrue("attribute worked",
                   getLog().indexOf("As attribute: it worked") > -1);
        assertTrue("nested text worked",
                   getLog().indexOf("As nested text: it worked") > -1);
    
public voidtestTaskdef()

        executeTarget("testTaskdef");
        assertTrue("attribute worked",
                   getLog().indexOf("As attribute: it worked") > -1);
        assertTrue("nested text worked",
                   getLog().indexOf("As nested text: it worked") > -1);
        assertTrue("nested text worked",
                   getLog().indexOf("As nested task: it worked") > -1);