private ClassLoader rootLoader;
private Map loaders = new HashMap();
- private String mainClass = "UnknowClass";
- private String mainLoader = "UnknowLoader";
+ private String mainClass = "UnknownClass";
+ private String mainLoader = "UnknownLoader";
public void initialize () throws IOException {
createRootLoader();
public void testInitialize() {
try {
- server.setWorkingDirectory("./testdata");
+ server.setWorkingDirectory("../testing-client/testdata");
server.initialize();
}
catch (IOException ex) {
}
public void testSetWorkingDirectory() {
- server.setWorkingDirectory("./testdata");
+ server.setWorkingDirectory("../testing-client/testdata");
}
}
Project p = new Project();
final StringBuffer stdout = new StringBuffer();
final StringBuffer stderr = new StringBuffer();
+ final StringBuffer verboseLog = new StringBuffer();
try {
// read the Ant file
p.init();
public void buildFinished(BuildEvent event) {
super.buildFinished(event);
if (event.getException() != null) {
- AjcTestCase.fail(failMessage + "failure " + event.getException());
+ StringBuffer message = new StringBuffer();
+ message.append(event.getException().toString()).append("\n");
+ message.append(verboseLog);
+ message.append(stdout);
+ message.append(stderr);
+// AjcTestCase.fail(failMessage + "failure " + event.getException());
+ AjcTestCase.fail(message.toString());
}
}
public void targetFinished(BuildEvent event) {
case Project.MSG_WARN:
stderr.append(event.getMessage()).append('\n');
break;
+ case Project.MSG_VERBOSE:
+ verboseLog.append(event.getMessage()).append('\n');
+ break;
}
}
};