FileDocCategorySizeDatePackage
AddTypeTest.javaAPI DocApache Ant 1.705225Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.types

AddTypeTest

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

Fields Summary
Constructors Summary
public AddTypeTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/types/addtype.xml");
    
public voidtestAddCondition()

        executeTarget("addcondition");
    
public voidtestAddConfigured()

        expectLogContaining(
            "myaddconfigured", "value is Value Setexecute: value is Value Set");
    
public voidtestAddConfiguredValue()

        expectLogContaining(
            "myaddconfiguredvalue",
            "value is Value Setexecute: value is Value Set");
    
public voidtestAddFilter()

        executeTarget("addfilter");
    
public voidtestAddPath()

        executeTarget("addpath");
    
public voidtestAddSelector()

        executeTarget("addselector");
    
public voidtestConditionConditionTask()

        expectBuildExceptionContaining(
            "condition.condition.task", "task masking condition",
            "doesn't support the nested");
    
public voidtestConditionConditionType()

        expectLogContaining("condition.condition.type", "My Condition eval");
    
public voidtestConditionTask()

        expectLogContaining("condition.task", "My Condition execution");
    
public voidtestConditionType()

        expectLogContaining("condition.type", "beforeafter");
    
public voidtestNamespace()

        executeTarget("namespacetest");
    
public voidtestNestedA()

        expectLogContaining("nested.a", "add A called");
    
public voidtestNestedAB()

        expectBuildExceptionContaining(
            "nested.ab", "Should have got ambiguous", "ambiguous");
    
public voidtestNestedB()

        expectLogContaining("nested.b", "add B called");
    
public voidtestNestedC()

        expectLogContaining("nested.c", "add C called");