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

RedirectorElementTest

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

Fields Summary
Constructors Summary
public RedirectorElementTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/types/redirector.xml", Project.MSG_VERBOSE);
    
public voidtest1()

        executeTarget("test1");
        assertTrue((getProject().getReference("test1")
            instanceof RedirectorElement));
    
public voidtest2()

        expectBuildException("test2", "You must not specify more than one "
            + "attribute when using refid");
    
public voidtest3()

        expectBuildException("test3", "You must not specify nested elements "
            + "when using refid");
    
public voidtest4()

        executeTarget("test4");
    
public voidtestLogInputString()

        executeTarget("testLogInputString");
        if (super.getLog().indexOf("testLogInputString can-cat") >=0 ) {
            assertDebuglogContaining("Using input string");
        }
    
public voidtestRefid()

        executeTarget("testRefid");