expectfailure report the original build exception chained when failing
git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@718551 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b9a640b0b0
commit
6d3eaa3685
|
|
@ -37,6 +37,12 @@
|
|||
<title>Apache AntUnit</title>
|
||||
</properties>
|
||||
|
||||
<release version="1.2" date="not-released">
|
||||
<action type="update">
|
||||
expectfailure report the original build exception chained when failing
|
||||
</action>
|
||||
</release>
|
||||
|
||||
<release version="1.1" date="2008-09-26">
|
||||
<action type="fix" issue="42745">
|
||||
assertFileExists example wrong, should use @file instead of @name
|
||||
|
|
|
|||
|
|
@ -38,4 +38,8 @@ public class AssertionFailedException extends BuildException {
|
|||
public AssertionFailedException(String message, Location loc) {
|
||||
super(message, loc);
|
||||
}
|
||||
|
||||
public AssertionFailedException(String message, BuildException e) {
|
||||
super(message , e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,9 +66,9 @@ public class ExpectFailureTask extends Sequential {
|
|||
+ "with message '"
|
||||
+ expectedMessage
|
||||
+ "' but was '"
|
||||
+ caughtMessage + "'");
|
||||
+ caughtMessage + "'" , e);
|
||||
} else {
|
||||
throw new AssertionFailedException(message);
|
||||
throw new AssertionFailedException(message, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue