fixed validation of failure expected results
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15103 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
c7c8a9bfd4
commit
603e6d4574
|
@ -62,7 +62,7 @@ public abstract class UnitTestCase extends junit.framework.TestCase {
|
|||
log.info( "Starting test [" + fullTestName() + "]" );
|
||||
super.runBare();
|
||||
if ( doValidate ) {
|
||||
throw new FailureExpectedTestPassedException( "Test marked as FailureExpected, but did not fail!" );
|
||||
throw new FailureExpectedTestPassedException();
|
||||
}
|
||||
}
|
||||
catch ( FailureExpectedTestPassedException t ) {
|
||||
|
@ -82,8 +82,8 @@ public abstract class UnitTestCase extends junit.framework.TestCase {
|
|||
}
|
||||
|
||||
private static class FailureExpectedTestPassedException extends Exception {
|
||||
public FailureExpectedTestPassedException(String message) {
|
||||
super( message );
|
||||
public FailureExpectedTestPassedException() {
|
||||
super( "Test marked as FailureExpected, but did not fail!" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue