[hibernate-commits] Hibernate SVN: r15103 - core/trunk/testing/src/main/java/org/hibernate/junit.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Aug 18 15:03:38 EDT 2008


Author: steve.ebersole at jboss.com
Date: 2008-08-18 15:03:38 -0400 (Mon, 18 Aug 2008)
New Revision: 15103

Modified:
   core/trunk/testing/src/main/java/org/hibernate/junit/UnitTestCase.java
Log:
fixed validation of failure expected results

Modified: core/trunk/testing/src/main/java/org/hibernate/junit/UnitTestCase.java
===================================================================
--- core/trunk/testing/src/main/java/org/hibernate/junit/UnitTestCase.java	2008-08-18 18:57:39 UTC (rev 15102)
+++ core/trunk/testing/src/main/java/org/hibernate/junit/UnitTestCase.java	2008-08-18 19:03:38 UTC (rev 15103)
@@ -62,7 +62,7 @@
 			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 @@
 	}
 
 	private static class FailureExpectedTestPassedException extends Exception {
-		public FailureExpectedTestPassedException(String message) {
-			super( message );
+		public FailureExpectedTestPassedException() {
+			super( "Test marked as FailureExpected, but did not fail!" );
 		}
 	}
 




More information about the hibernate-commits mailing list