Methods Summary |
---|
private boolean | isSharedJVM()only do the antlib tests if we are in the same JVM as ant.
String property = System.getProperty("tests.and.ant.share.classloader");
return property!=null && Project.toBoolean(property);
|
public void | setUp()
configureProject("src/etc/testcases/taskdefs/antlib.xml");
|
public void | testAntlibFile()
expectLog("antlib.file", "MyTask called");
|
public void | testAntlibResource()Confirms that all matching resources will be used, so that you
can collect several antlibs in one Definer call.
expectLog("antlib.resource", "MyTask called-and-then-MyTask2 called");
|
public void | testAntlib_uri()
if (isSharedJVM()) {
executeTarget("antlib_uri");
}
|
public void | testAntlib_uri_auto()
if (isSharedJVM()) {
executeTarget("antlib_uri_auto");
}
|
public void | testAntlib_uri_auto2()
if (isSharedJVM()) {
executeTarget("antlib_uri_auto2");
}
|
public void | testNsCurrent()
expectLog("ns.current", "Echo2 inside a macroHello from x:p");
|