Methods Summary |
---|
public void | setUp()
configureProject("src/etc/testcases/taskdefs/macrodef.xml");
|
public void | testAttributeDescription()
expectLog(
"attribute.description",
"description is hello world");
|
public void | testBackTrace()
expectBuildExceptionContaining(
"backtraceon",
"Checking if a back trace is created",
"following error occurred");
|
public void | testBackTraceOff()
try {
executeTarget("backtraceoff");
} catch (BuildException ex) {
if (ex.getMessage().indexOf("following error occurred") != -1) {
fail("error message contained backtrace - " + ex.getMessage());
}
}
|
public void | testDouble()
expectLog(
"double",
"@{prop} is 'property', value of ${property} is 'A property value'");
|
public void | testDuplicateAttribute()
expectBuildException(
"duplicate.attribute",
"the attribute text has already been specified");
|
public void | testDuplicateElement()
expectBuildException(
"duplicate.element",
"the element text has already been specified");
|
public void | testDuplicateTextName()
expectBuildException(
"duplicatetextname",
"the name \"text\" is already used as an attribute");
|
public void | testDuplicateTextName2()
expectBuildException(
"duplicatetextname2",
"the attribute name \"text\" has already been used by the text element");
|
public void | testEscape()
expectLog(
"escape",
"a@b or a@b is avalue@bvalue");
|
public void | testIgnoreCase()
expectLog(
"ignorecase",
"a is ab is b");
|
public void | testIgnoreElementCase()
expectLog(
"ignore-element-case",
"nested elementnested element");
|
public void | testImplicit()
expectLog(
"implicit", "Before implicitIn implicitAfter implicit");
|
public void | testImplicitExplicit()
expectSpecificBuildException(
"implicit.explicit",
"Only one element allowed when using implicit elements",
"Only one element allowed when using implicit elements");
|
public void | testImplicitNotOptional()
expectSpecificBuildException(
"implicit.notoptional",
"Missing nested elements for implicit element implicit",
"Missing nested elements for implicit element implicit");
|
public void | testImplicitOptional()
expectLog(
"implicit.optional", "Before implicitAfter implicit");
|
public void | testNested()
expectLog("nested", "A nested element");
|
public void | testOverrideDefault()
expectLog(
"override.default",
"value is new");
|
public void | testSimple()
expectLog("simple", "Hello World");
|
public void | testText()
expectLog("text", "Inner Text");
|
public void | testTextElement()
expectLogContaining(
"textelement", "Hello world");
|
public void | testTextTrim()
expectLogContaining(
"text.trim", "[Hello world]");
|
public void | testTopLevelText()
expectLogContaining("top-level-text", "Hello World");
|
public void | testUri()
expectLog("uri", "Hello World");
|