Methods Summary |
---|
public void | setUp()
configureProject("src/etc/testcases/taskdefs/typedef.xml");
|
public void | testClassNotFound()
expectBuildException("classNotFound",
"classname specified doesn't exist");
|
public void | testDoubleNotPresent()test to make sure that one can define a not present
optional type twice and then have a valid definition.
expectLogContaining("double-notpresent", "hi");
|
public void | testEmpty()
expectBuildException("empty", "required argument not specified");
|
public void | testGlobal()
expectLog("testGlobal", "");
Object ref = project.getReferences().get("global");
assertNotNull("ref is not null", ref);
assertEquals("org.example.types.TypedefTestType",
ref.getClass().getName());
|
public void | testLocal()
expectLog("testLocal", "");
Object ref = project.getReferences().get("local");
assertNotNull("ref is not null", ref);
assertEquals("org.example.types.TypedefTestType",
ref.getClass().getName());
|
public void | testNoClassname()
expectBuildException("noClassname", "required argument not specified");
|
public void | testNoName()
expectBuildException("noName", "required argument not specified");
|
public void | testNoResourceOnErrorFail()
expectLogContaining("noresourcefail","Could not load definitions from resource ");
|
public void | testNoResourceOnErrorFailAll()
this.expectBuildExceptionContaining("noresourcefailall","the requested resource does not exist","Could not load definitions from resource ");
|
public void | testNoResourceOnErrorNotFail()
expectLogContaining("noresourcenotfail","Could not load definitions from resource ");
|