Methods Summary |
---|
public void | setUp()
configureProject("src/etc/testcases/core/location.xml");
|
public void | testConditionTask()
executeTarget("testConditionTask");
TaskAdapter ta = (TaskAdapter) getProject().getReference("cond");
ConditionTask c = (ConditionTask) ta.getProxy();
assertFalse(c.getLocation() == Location.UNKNOWN_LOCATION);
assertFalse(c.getLocation().getLineNumber() == 0);
|
public void | testMacrodefWrappedTask()
executeTarget("testMacrodefWrappedTask");
Echo e = (Echo) getProject().getReference("echo3");
assertTrue(getLog().indexOf("Line: "
+ (e.getLocation().getLineNumber() + 1))
> -1);
|
public void | testPlainTask()
executeTarget("testPlainTask");
Echo e = (Echo) getProject().getReference("echo");
assertFalse(e.getLocation() == Location.UNKNOWN_LOCATION);
assertFalse(e.getLocation().getLineNumber() == 0);
|
public void | testPresetdefWrappedTask()
executeTarget("testPresetdefWrappedTask");
Echo e = (Echo) getProject().getReference("echo4");
assertTrue(getLog().indexOf("Line: "
+ (e.getLocation().getLineNumber() + 1))
> -1);
|
public void | testStandaloneType()
executeTarget("testStandaloneType");
Echo e = (Echo) getProject().getReference("echo2");
FileSet f = (FileSet) getProject().getReference("fs");
assertFalse(f.getLocation() == Location.UNKNOWN_LOCATION);
assertEquals(e.getLocation().getLineNumber() + 1,
f.getLocation().getLineNumber());
|