diff --git a/src/etc/testcases/taskdefs/conditions/typefound.xml b/src/etc/testcases/taskdefs/conditions/typefound.xml index ea90f325c..12a8e6005 100644 --- a/src/etc/testcases/taskdefs/conditions/typefound.xml +++ b/src/etc/testcases/taskdefs/conditions/typefound.xml @@ -14,9 +14,15 @@ + + + + + + - + diff --git a/src/testcases/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java b/src/testcases/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java index 89fbeb311..e175a4989 100644 --- a/src/testcases/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java +++ b/src/testcases/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java @@ -78,15 +78,23 @@ public class TypeFoundTest extends BuildFileTest { public void testUndefined() { expectBuildExceptionContaining("testUndefined","left out the name attribute", "No type specified"); } + + public void testTaskThatIsntDefined() { + expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined"); + } + public void testTaskThatDoesntReallyExist() { expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist"); } + public void testType() { expectPropertySet("testType", "testType"); } + public void testPreset() { expectPropertySet("testPreset", "testPreset"); } + public void testMacro() { expectPropertySet("testMacro", "testMacro"); }