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:
Steve Ebersole 2008-08-18 19:03:38 +00:00
parent c7c8a9bfd4
commit 603e6d4574
1 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ public abstract class UnitTestCase extends junit.framework.TestCase {
log.info( "Starting test [" + fullTestName() + "]" ); log.info( "Starting test [" + fullTestName() + "]" );
super.runBare(); super.runBare();
if ( doValidate ) { if ( doValidate ) {
throw new FailureExpectedTestPassedException( "Test marked as FailureExpected, but did not fail!" ); throw new FailureExpectedTestPassedException();
} }
} }
catch ( FailureExpectedTestPassedException t ) { catch ( FailureExpectedTestPassedException t ) {
@ -82,8 +82,8 @@ public abstract class UnitTestCase extends junit.framework.TestCase {
} }
private static class FailureExpectedTestPassedException extends Exception { private static class FailureExpectedTestPassedException extends Exception {
public FailureExpectedTestPassedException(String message) { public FailureExpectedTestPassedException() {
super( message ); super( "Test marked as FailureExpected, but did not fail!" );
} }
} }