FileDocCategorySizeDatePackage
ReplaceTokensTest.javaAPI DocApache Ant 1.702150Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.filters

ReplaceTokensTest

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

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


       
        super(name);
    
Methods Summary
public voidsetUp()

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

        executeTarget("cleanup");
    
public voidtestReplaceTokens()

        executeTarget("testReplaceTokens");
        File expected = FILE_UTILS.resolveFile(getProject().getBaseDir(),"expected/replacetokens.test");
        File result = FILE_UTILS.resolveFile(getProject().getBaseDir(),"result/replacetokens.test");
        assertTrue(FILE_UTILS.contentEquals(expected, result));
    
public voidtestReplaceTokensPropertyFile()

        executeTarget("testReplaceTokensPropertyFile");
        File expected = FILE_UTILS.resolveFile(getProjectDir(), "expected/replacetokens.test");
        File result = FILE_UTILS.resolveFile(getProjectDir(), "result/replacetokensPropertyFile.test");
        assertTrue(FILE_UTILS.contentEquals(expected, result));