FileDocCategorySizeDatePackage
LineContainsTest.javaAPI DocApache Ant 1.701870Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.filters

LineContainsTest

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

Fields Summary
private static final org.apache.tools.ant.util.FileUtils
FILE_UTILS
Constructors Summary
public LineContainsTest(String name)

    
       
        super(name);
    
Methods Summary
public voidsetUp()

        configureProject("src/etc/testcases/filters/build.xml");
    
public voidtearDown()

        executeTarget("cleanup");
    
public voidtestLineContains()

        executeTarget("testLineContains");
        File expected = FILE_UTILS.resolveFile(getProject().getBaseDir(),"expected/linecontains.test");
        File result = FILE_UTILS.resolveFile(getProject().getBaseDir(),"result/linecontains.test");
        assertTrue(FILE_UTILS.contentEquals(expected, result));
    
public voidtestNegateLineContains()

        executeTarget("testNegateLineContains");