Methods Summary |
---|
public void | setUp()The JUnit setup method
configureProject("src/etc/testcases/taskdefs/loadfile.xml");
|
public void | tearDown()The teardown method for JUnit
executeTarget("cleanup");
|
public void | testEvalProps()A unit test for JUnit
executeTarget("testEvalProps");
if(project.getProperty("testEvalProps").indexOf("rain")<0) {
fail("property eval broken");
}
|
public void | testFailOnError()A unit test for JUnit
expectPropertyUnset("testFailOnError","testFailOnError");
|
public void | testFilterChain()Test FilterChain and FilterReaders
executeTarget("testFilterChain");
if(project.getProperty("testFilterChain").indexOf("World!")<0) {
fail("Filter Chain broken");
}
|
public void | testLoadAFile()A unit test for JUnit
executeTarget("testLoadAFile");
if(project.getProperty("testLoadAFile").indexOf("eh?")<0) {
fail("property is not all in the file");
}
|
public void | testLoadAFileEnc()A unit test for JUnit
executeTarget("testLoadAFileEnc");
if(project.getProperty("testLoadAFileEnc")==null) {
fail("file load failed");
}
|
public void | testNoPropertyDefined()A unit test for JUnit
expectBuildException("testNoPropertyDefined",
"output property not defined");
|
public void | testNoSourcefileDefined()A unit test for JUnit
expectBuildException("testNoSourcefileDefined",
"source file not defined");
|
public void | testNoSourcefilefound()A unit test for JUnit
expectBuildExceptionContaining("testNoSourcefilefound",
"File not found", " doesn't exist");
|
public void | testOneLine()A unit test for JUnit
expectPropertySet("testOneLine","testOneLine","1,2,3,4");
|
public final void | testStripJavaComments()Test StripJavaComments filterreader functionality.
executeTarget("testStripJavaComments");
final String expected = project.getProperty("expected");
final String generated = project.getProperty("testStripJavaComments");
assertEquals(expected, generated);
|