Tweak abstract base tests.

This commit is contained in:
Jon Brisbin
2013-03-02 11:50:09 -06:00
parent 452134625f
commit 6ef500804b
2 changed files with 4 additions and 10 deletions

View File

@@ -1,19 +1,16 @@
package org.springframework.data.rest;
import org.jmock.integration.junit4.JMock;
import org.jmock.integration.junit4.JUnit4Mockery;
import org.jmock.integration.junit4.JUnitRuleMockery;
import org.jmock.lib.legacy.ClassImposteriser;
import org.junit.runner.RunWith;
/**
* Abstract base classes for JUnit tests that use JMock.
*
* @author Jon Brisbin
*/
@RunWith(JMock.class)
public abstract class AbstractJMockTests {
protected JUnit4Mockery context = new JUnit4Mockery() {{
protected JUnitRuleMockery context = new JUnitRuleMockery() {{
setImposteriser(ClassImposteriser.INSTANCE);
}};

View File

@@ -1,19 +1,16 @@
package org.springframework.data.rest;
import org.jmock.integration.junit4.JMock;
import org.jmock.integration.junit4.JUnit4Mockery;
import org.jmock.integration.junit4.JUnitRuleMockery;
import org.jmock.lib.legacy.ClassImposteriser;
import org.junit.runner.RunWith;
/**
* Abstract base classes for JUnit tests that use JMock.
*
* @author Jon Brisbin
*/
@RunWith(JMock.class)
public abstract class AbstractJMockTests {
protected JUnit4Mockery context = new JUnit4Mockery() {{
protected JUnitRuleMockery context = new JUnitRuleMockery() {{
setImposteriser(ClassImposteriser.INSTANCE);
}};