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

PreSetDefTest

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

Fields Summary
Constructors Summary
public PreSetDefTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/taskdefs/presetdef.xml");
    
public voidtestAntTypeTest()

        expectLog("antTypeTest", "");
    
public voidtestCorrectTaskNameBadAttr()

        expectBuildExceptionContaining(
            "correct_taskname_badattr", "attribute message", "javac doesn't support the");
    
public voidtestCorrectTaskNameBadEl()

        expectBuildExceptionContaining(
            "correct_taskname_badel", "element message", "javac doesn't support the");
    
public voidtestDefaultTest()

        expectLog("defaulttest", "attribute is false");
    
public voidtestDoubleDefault()

        expectLog("doubledefault", "attribute is falseattribute is true");
    
public voidtestElementOrder()

        expectLog("element.order", "Line 1Line 2");
    
public voidtestElementOrder2()

        expectLog("element.order2", "Line 1Line 2Line 3");
    
public voidtestPresetdefWithNestedElementTwice()

 // #38056
        executeTarget("presetdef-with-nested-element-twice");
        executeTarget("presetdef-with-nested-element-twice");
    
public voidtestSimple()

        expectLog("simple", "Hello world");
    
public voidtestText()

        expectLog("text", "Inner Text");
    
public voidtestTextOptional()

        expectLog("text.optional", "MyTextoverride text");
    
public voidtestUri()

        expectLog("uri", "Hello world");