FileDocCategorySizeDatePackage
TypedefTest.javaAPI DocApache Ant 1.702945Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.taskdefs

TypedefTest

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

Fields Summary
Constructors Summary
public TypedefTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/taskdefs/typedef.xml");
    
public voidtestClassNotFound()

        expectBuildException("classNotFound",
                             "classname specified doesn't exist");
    
public voidtestDoubleNotPresent()
test to make sure that one can define a not present optional type twice and then have a valid definition.

        expectLogContaining("double-notpresent", "hi");
    
public voidtestEmpty()

        expectBuildException("empty", "required argument not specified");
    
public voidtestGlobal()

        expectLog("testGlobal", "");
        Object ref = project.getReferences().get("global");
        assertNotNull("ref is not null", ref);
        assertEquals("org.example.types.TypedefTestType",
                     ref.getClass().getName());
    
public voidtestLocal()

        expectLog("testLocal", "");
        Object ref = project.getReferences().get("local");
        assertNotNull("ref is not null", ref);
        assertEquals("org.example.types.TypedefTestType",
                     ref.getClass().getName());
    
public voidtestNoClassname()

        expectBuildException("noClassname", "required argument not specified");
    
public voidtestNoName()

        expectBuildException("noName", "required argument not specified");
    
public voidtestNoResourceOnErrorFail()

		expectLogContaining("noresourcefail","Could not load definitions from resource ");
    
public voidtestNoResourceOnErrorFailAll()

    		this.expectBuildExceptionContaining("noresourcefailall","the requested resource does not exist","Could not load definitions from resource ");
    
public voidtestNoResourceOnErrorNotFail()

    		expectLogContaining("noresourcenotfail","Could not load definitions from resource ");