FileDocCategorySizeDatePackage
EchoTest.javaAPI DocApache Ant 1.703235Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs

EchoTest

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

Fields Summary
Constructors Summary
public EchoTest(String name)

        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/taskdefs/echo.xml");
    
public voidtearDown()

        executeTarget("clean");
    
public voidtest1()

        expectLog("test1", "");
    
public voidtest2()

        expectLog("test2", "OUTPUT OF ECHO");
    
public voidtest3()

        expectLog("test3", "\n"+
                              "    This \n"+
                              "    is\n"+
                              "    a \n"+
                              "    multiline\n"+
                              "    message\n"+
                              "    ");
    
public voidtestAppend()

        executeTarget("testAppend");
    
public voidtestEmptyEncoding()

        executeTarget("testEmptyEncoding");
    
public voidtestFile()

        executeTarget("testFile");
    
public voidtestLogBlankEcho()

        EchoTestLogger logger = new EchoTestLogger();
        getProject().addBuildListener(logger);
        getProject().executeTarget("test1");
        assertEquals("     [echo] ", logger.lastLoggedMessage );
    
public voidtestUTF16Encoding()

        executeTarget("testUTF16Encoding");
    
public voidtestUTF8Encoding()

        executeTarget("testUTF8Encoding");