Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Commits List »

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

hibernate-commits

2008-08-18


Author LoginPost Reply
Author: steve.ebersole@(protected)
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)
@@(protected) @@
     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 ) {
@@(protected) @@
 }

 private static class FailureExpectedTestPassedException extends Exception {
-    public FailureExpectedTestPassedException(String message) {
-      super( message );
+    public FailureExpectedTestPassedException() {
+      super( "Test marked as FailureExpected, but did not fail!" );
   }
 }


_______________________________________________
hibernate-commits mailing list
hibernate-commits@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-commits
©2008 gg3721.com - Jax Systems, LLC, U.S.A.