From 603e6d4574927c583fe54b26f2a4855927fe2d42 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Mon, 18 Aug 2008 19:03:38 +0000 Subject: [PATCH] fixed validation of failure expected results git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15103 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- testing/src/main/java/org/hibernate/junit/UnitTestCase.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/src/main/java/org/hibernate/junit/UnitTestCase.java b/testing/src/main/java/org/hibernate/junit/UnitTestCase.java index ed0438a745..e23cf30827 100644 --- a/testing/src/main/java/org/hibernate/junit/UnitTestCase.java +++ b/testing/src/main/java/org/hibernate/junit/UnitTestCase.java @@ -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!" ); } }