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

RecorderTest

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

Fields Summary
private static final String
REC_IN
private static final String
REC_DIR
private static final org.apache.tools.ant.util.FileUtils
FILE_UTILS
Utilities used for file operations
Constructors Summary
public RecorderTest(String name)


       
        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/taskdefs/recorder.xml");
        executeTarget("prepare");
    
public voidtearDown()

        executeTarget("cleanup");
    
public voidtestAppend()

        executeTarget("append");
        assertTrue(FILE_UTILS
                   .contentEquals(project.resolveFile(REC_IN
                                                      + "rectest2.result"),
                                  project.resolveFile(REC_DIR
                                                      + "rectest2.log"), true));
    
public voidtestDeleteRestart()

        executeTarget("deleterestart");
        assertTrue(FILE_UTILS
                   .contentEquals(project.resolveFile(REC_IN
                                                      + "rectest4.result"),
                                  project.resolveFile(REC_DIR
                                                      + "rectest4.log"), true));
    
public voidtestNoAppend()

        executeTarget("noappend");
        assertTrue(FILE_UTILS
                   .contentEquals(project.resolveFile(REC_IN
                                                      + "rectest1.result"),
                                  project.resolveFile(REC_DIR
                                                      + "rectest1.log"), true));
    
public voidtestRestart()

        executeTarget("restart");
        assertTrue(FILE_UTILS
                   .contentEquals(project.resolveFile(REC_IN
                                                      + "rectest3.result"),
                                  project.resolveFile(REC_DIR
                                                      + "rectest3.log"), true));