jmock-junit4/src/main/java/org/jmock/integration/junit4/JUnit4Mockery.java
raw| 1 | package org.jmock.integration.junit4; |
| 2 | |
| 3 | import org.jmock.Mockery; |
| 4 | import org.jmock.lib.AssertionErrorTranslator; |
| 5 | |
| 6 | /** |
| 7 | * A {@link Mockery} that reports expectation errors as JUnit 4 test failures. |
| 8 | * @author nat |
| 9 | */ |
| 10 | public class JUnit4Mockery extends Mockery { |
| 11 | public JUnit4Mockery() { |
| 12 | setExpectationErrorTranslator(AssertionErrorTranslator.INSTANCE); |
| 13 | } |
| 14 | } |