Methods Summary |
---|
private java.lang.String | getKey(java.lang.String key)
return key; // XXX what is this for?
|
public void | setUp()
configureProject("src/etc/testcases/taskdefs/input.xml");
System.getProperties()
.put(PropertyFileInputHandler.FILE_NAME_KEY,
getProject().resolveFile("input.properties")
.getAbsolutePath());
getProject().setInputHandler(new PropertyFileInputHandler());
|
private void | stdin()
try {
System.setIn(new FileInputStream(
getProject().resolveFile("input.stdin")));
} catch (Exception e) {
throw e instanceof RuntimeException
? (RuntimeException) e : new RuntimeException(e.getMessage());
}
|
public void | test1()
executeTarget("test1");
|
public void | test2()
executeTarget("test2");
|
public void | test3()
expectSpecificBuildException("test3", "invalid input",
"Found invalid input test for \'"
+ getKey("All data is"
+ " going to be deleted from DB"
+ " continue?")
+ "\'");
|
public void | test5()
executeTarget("test5");
|
public void | test6()
executeTarget("test6");
assertEquals("scott", project.getProperty("db.user"));
|
public void | testDefaultInlineHandler()
stdin();
executeTarget("testDefaultInlineHandler");
|
public void | testGreedyInlineHandler()
stdin();
executeTarget("testGreedyInlineHandler");
|
public void | testGreedyInlineHandlerClassname()
stdin();
executeTarget("testGreedyInlineHandlerClassname");
|
public void | testGreedyInlineHandlerRefid()
stdin();
executeTarget("testGreedyInlineHandlerRefid");
|
public void | testPropertyFileInlineHandler()
executeTarget("testPropertyFileInlineHandler");
|