Methods Summary |
---|
public void | setUp()The JUnit setup method
configureProject("src/etc/testcases/taskdefs/condition.xml");
|
public void | tearDown()The teardown method for JUnit
executeTarget("cleanup");
|
public void | testAnd()
expectPropertySet("and","and");
|
public void | testAndFails()
expectPropertyUnset("andfails","andfails");
|
public void | testAndIncomplete()
expectPropertyUnset("andincomplete","andincomplete");
|
public void | testAndempty()
expectPropertySet("andempty","andempty");
|
public void | testBasic()
expectPropertySet("basic","basic");
|
public void | testConditionEmpty()
expectSpecificBuildException("condition-empty",
"no conditions",
"You must nest a condition into <condition>");
|
public void | testConditionIncomplete()
expectSpecificBuildException("condition-incomplete",
"property attribute has been omitted",
"The property attribute is required.");
|
public void | testContains()
expectPropertySet("contains","contains");
|
public void | testContainsAnycase()
expectPropertySet("contains-anycase","contains-anycase");
|
public void | testContainsDoesnt()
expectPropertyUnset("contains-doesnt","contains-doesnt");
|
public void | testContainsIncomplete1()
expectSpecificBuildException("contains-incomplete1",
"Missing contains attribute",
"both string and substring are required in contains");
|
public void | testContainsIncomplete2()
expectSpecificBuildException("contains-incomplete2",
"Missing contains attribute",
"both string and substring are required in contains");
|
public void | testElse()
executeTarget("testElse");
|
public void | testFilesmatchDifferent()
expectPropertyUnset("filesmatch-different","filesmatch-different");
|
public void | testFilesmatchDifferentEol()
executeTarget("filesmatch-different-eol");
|
public void | testFilesmatchDifferentOnemissing()
expectPropertyUnset("filesmatch-different-onemissing",
"filesmatch-different-onemissing");
|
public void | testFilesmatchDifferentSizes()
expectPropertyUnset("filesmatch-different-sizes",
"filesmatch-different-sizes");
|
public void | testFilesmatchExistence()
expectPropertyUnset("filesmatch-existence", "filesmatch-existence");
|
public void | testFilesmatchIdentical()
expectPropertySet("filesmatch-identical","filesmatch-identical");
|
public void | testFilesmatchIncomplete()
expectSpecificBuildException("filesmatch-incomplete",
"Missing file2 attribute",
"both file1 and file2 are required in filesmatch");
|
public void | testFilesmatchMatch()
expectPropertySet("filesmatch-match","filesmatch-match");
|
public void | testFilesmatchNeitherExist()
executeTarget("filesmatch-neitherexist");
|
public void | testFilesmatchOddsizes()
expectPropertyUnset("filesmatch-oddsizes","filesmatch-oddsizes");
|
public void | testFilesmatchSameEol()
executeTarget("filesmatch-same-eol");
|
public void | testIsfalseFalse()
expectPropertySet("isfalse-false","isfalse-false");
|
public void | testIsfalseIncomplete1()
expectSpecificBuildException("isfalse-incomplete",
"Missing attribute",
"Nothing to test for falsehood");
|
public void | testIsfalseNot()
expectPropertySet("isfalse-not","isfalse-not");
|
public void | testIsfalseTrue()
expectPropertyUnset("isfalse-true","isfalse-true");
|
public void | testIstrue()
expectPropertySet("istrue","istrue");
|
public void | testIstrueFalse()
expectPropertyUnset("istrue-false","istrue-false");
|
public void | testIstrueIncomplete1()
expectSpecificBuildException("istrue-incomplete",
"Missing attribute",
"Nothing to test for truth");
|
public void | testIstrueNot()
expectPropertyUnset("istrue-not","istrue-not");
|
public void | testNegation()
expectPropertySet("negation","negation");
|
public void | testNegationFalse()
expectPropertyUnset("negationfalse","negationfalse");
|
public void | testNegationIncomplete()
expectSpecificBuildException("negationincomplete",
"no conditions in <not>",
"You must nest a condition into <not>");
|
public void | testOr()
expectPropertySet("or","or");
|
public void | testOrFails()
expectPropertyUnset("orfails","orfails");
|
public void | testOrboth()
expectPropertySet("orboth","orboth");
|
public void | testOrincomplete()
expectPropertySet("or","or");
|
public void | testResourcesmatchBinary()
executeTarget("resourcesmatch-match-binary");
|
public void | testResourcesmatchDiffer()
executeTarget("resourcesmatch-differ");
|
public void | testResourcesmatchEmpty()
executeTarget("resourcesmatch-match-empty");
|
public void | testResourcesmatchError()
expectBuildException("resourcesmatch-error",
"should fail because no resources specified");
|
public void | testResourcesmatchMultipleBinary()
executeTarget("resourcesmatch-match-multiple-binary");
|
public void | testResourcesmatchNoneExist()
executeTarget("resourcesmatch-noneexist");
|
public void | testResourcesmatchOne()
executeTarget("resourcesmatch-match-one");
|
public void | testResourcesmatchText()
executeTarget("resourcesmatch-match-text");
|
public void | testSetValue()
expectPropertySet("setvalue","setvalue","woowoo");
|
public void | testShortcut()
expectPropertySet("shortcut","shortcut","set");
|
public void | testUnset()
expectPropertyUnset("dontset","dontset");
|