FileDocCategorySizeDatePackage
TypeFoundTest.javaAPI DocApache Ant 1.702027Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs.condition

TypeFoundTest

public class TypeFoundTest extends org.apache.tools.ant.BuildFileTest
test the typeexists condition

Fields Summary
Constructors Summary
public TypeFoundTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()
The JUnit setup method

        configureProject("src/etc/testcases/taskdefs/conditions/typefound.xml");
    
public voidtestMacro()

        expectPropertySet("testMacro", "testMacro");
    
public voidtestPreset()

        expectPropertySet("testPreset", "testPreset");
    
public voidtestTask()

        expectPropertySet("testTask", "testTask");
    
public voidtestTaskThatDoesntReallyExist()

        expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist");
    
public voidtestTaskThatIsntDefined()

        expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined");
    
public voidtestType()

        expectPropertySet("testType", "testType");
    
public voidtestUndefined()

        expectBuildExceptionContaining("testUndefined","left out the name attribute", "No type specified");