Methods Summary |
---|
private void | expectFileContains(java.lang.String name, java.lang.String contains)
String content = getFileString(name);
assertTrue(
"expecting file " + name + " to contain " + contains +
" but got " + content, content.indexOf(contains) > -1);
|
private void | expectFileContains(java.lang.String target, java.lang.String name, java.lang.String contains)
executeTarget(target);
expectFileContains(name, contains);
|
private java.lang.String | getFileString(java.lang.String filename)
Reader r = null;
try {
r = new FileReader(FILE_UTILS.resolveFile(getProject().getBaseDir(), filename));
return FileUtils.readFully(r);
}
finally {
FileUtils.close(r);
}
|
public void | setUp()
configureProject("src/etc/testcases/filters/dynamicfilter.xml");
executeTarget("init");
|
public void | tearDown()
executeTarget("cleanup");
|
public void | testCustomFilter()
expectFileContains("dynamicfilter", "result/dynamicfilter",
"hellO wOrld");
|