Browse Source

test contents of exceptions match expectations

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270371 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 23 years ago
parent
commit
b2519d45f5
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      src/testcases/org/apache/tools/ant/taskdefs/FailTest.java

+ 10
- 2
src/testcases/org/apache/tools/ant/taskdefs/FailTest.java View File

@@ -76,9 +76,17 @@ public class FailTest extends BuildFileTest {
}

public void test2() {
expectBuildException("test2", "it is required to fail :-)");
expectSpecificBuildException("test2",
"it is required to fail :-)",
"test2");
}

public void testText() {
expectSpecificBuildException("testText",
"it is required to fail :-)",
"testText");
}
public void testIf() {
try {
executeTarget("testIf");


Loading…
Cancel
Save