Methods Summary |
---|
public void | buildFinished(BuildEvent event)
|
public void | buildStarted(BuildEvent event)
|
private Project | getProject(java.lang.String e)
return getProject(e, false);
|
private Project | getProject(java.lang.String e, boolean f)
return getProject(e, f, false);
|
private Project | getProject(java.lang.String e, boolean f, boolean k)
Project p = getProject();
p.setNewProperty("ant.executor.class", e);
p.setKeepGoingMode(k);
if (f) {
p.setNewProperty("failfoo", "foo");
}
return p;
|
public void | messageLogged(BuildEvent event)
|
public void | setUp()
configureProject("src/etc/testcases/core/executor.xml");
targetCount = 0;
getProject().addBuildListener(this);
|
public void | targetFinished(BuildEvent event)
|
public void | targetStarted(BuildEvent event)
targetCount++;
|
public void | taskFinished(BuildEvent event)
|
public void | taskStarted(BuildEvent event)
|
public void | testDefaultExecutor()
getProject().executeTargets(targetNames);
assertEquals(targetCount, 4);
|
public void | testDefaultFailure()
try {
getProject(null, true).executeTargets(targetNames);
fail("should fail");
} catch (BuildException e) {
assertTrue(e.getMessage().equals("failfoo"));
assertEquals(targetCount, 1);
}
|
public void | testKeepGoingDefault()
try {
getProject(null, true, true).executeTargets(targetNames);
fail("should fail");
} catch (BuildException e) {
assertTrue(e.getMessage().equals("failfoo"));
assertEquals(targetCount, 2);
}
|
public void | testKeepGoingSingleCheck()
try {
getProject(SINGLE_CHECK, true, true).executeTargets(targetNames);
fail("should fail");
} catch (BuildException e) {
assertTrue(e.getMessage().equals("failfoo"));
assertEquals(targetCount, 1);
}
|
public void | testSingleCheckExecutor()
getProject(SINGLE_CHECK).executeTargets(targetNames);
assertEquals(targetCount, 3);
|
public void | testSingleCheckFailure()
try {
getProject(SINGLE_CHECK, true).executeTargets(targetNames);
fail("should fail");
} catch (BuildException e) {
assertTrue(e.getMessage().equals("failfoo"));
assertEquals(targetCount, 1);
}
|