- Revision
- 928
- Author
- mauro
- Date
- 2008-09-18 15:12:17 -0500 (Thu, 18 Sep 2008)
Log Message
Replaced Assert.fail with throwing an explicit AssertionError to ensure compatibility with JUnit 3.8.x
Modified Paths
Diff
Modified: trunk/jbehave-core/src/java/org/jbehave/scenario/errors/ErrorStrategyInWhichWeTrustTheReporter.java (927 => 928)
--- trunk/jbehave-core/src/java/org/jbehave/scenario/errors/ErrorStrategyInWhichWeTrustTheReporter.java 2008-09-18 19:35:21 UTC (rev 927) +++ trunk/jbehave-core/src/java/org/jbehave/scenario/errors/ErrorStrategyInWhichWeTrustTheReporter.java 2008-09-18 20:12:17 UTC (rev 928) @@ -1,9 +1,7 @@ package org.jbehave.scenario.errors; -import static org.junit.Assert.fail; - public class ErrorStrategyInWhichWeTrustTheReporter implements ErrorStrategy { public void handleError(Throwable throwable) throws Throwable { - fail("An error occurred while running the scenarios; please check output for details."); + throw new AssertionError("An error occurred while running the scenarios; please check output for details."); } }
To unsubscribe from this list please visit:
