FileDocCategorySizeDatePackage
TaskdefTest.javaAPI DocApache Ant 1.702459Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs

TaskdefTest

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

Fields Summary
Constructors Summary
public TaskdefTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/taskdefs/taskdef.xml");
    
public voidtest1()

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

        expectBuildException("test2", "required argument not specified");
    
public voidtest3()

        expectBuildException("test3", "required argument not specified");
    
public voidtest4()

        expectBuildException("test4", "classname specified doesn't exist");
    
public voidtest5()

        expectBuildException("test5", "No public execute() in " + Project.class);
    
public voidtest5a()

        executeTarget("test5a");
    
public voidtest6()

        expectLog("test6", "simpletask: worked");
    
public voidtest7()

        expectLog("test7", "worked");
    
public voidtestGlobal()

        expectLog("testGlobal", "worked");
    
public voidtestOverride()

        executeTarget("testOverride");
        String log = getLog();
        assertTrue("override warning sent",
                   log.indexOf("Trying to override old definition of task copy") > -1);
        assertTrue("task inside target worked",
                   log.indexOf("In target") > -1);
        assertTrue("task inside target worked",
                   log.indexOf("In TaskContainer") > -1);