| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Hibernate
Revision: 15103
Author: steve.ebersole@jboss.com
Date: 18 Aug 2008 15:03:38
Changes:fixed validation of failure expected results
Files:| ... | ...@@ -62,7 +62,7 @@ | |
| 62 | 62 | log.info( "Starting test [" + fullTestName() + "]" ); |
| 63 | 63 | super.runBare(); |
| 64 | 64 | if ( doValidate ) { |
| 65 | throw new FailureExpectedTestPassedException( "Test marked as FailureExpected, but did not fail!" ); | |
| 65 | throw new FailureExpectedTestPassedException(); | |
| 66 | 66 | } |
| 67 | 67 | } |
| 68 | 68 | catch ( FailureExpectedTestPassedException t ) { |
| ... | ...@@ -82,8 +82,8 @@ | |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | private static class FailureExpectedTestPassedException extends Exception { |
| 85 | public FailureExpectedTestPassedException(String message) { | |
| 86 | super( message ); | |
| 85 | public FailureExpectedTestPassedException() { | |
| 86 | super( "Test marked as FailureExpected, but did not fail!" ); | |
| 87 | 87 | } |
| 88 | 88 | } |
| 89 | 89 |