JUnitRuleMockery
@Deprecated
public class JMock
extends org.junit.runners.BlockJUnit4ClassRunner
Runner
that asserts that all expectations have been met after
the test has finished and before the fixture is torn down.Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Field |
mockeryField
Deprecated.
|
Constructor and Description |
---|
JMock(java.lang.Class<?> testClass)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
assertMockeryIsSatisfied(java.lang.Object test)
Deprecated.
|
protected java.lang.Object |
createTest()
Deprecated.
|
(package private) static java.lang.reflect.Field |
findMockeryField(java.lang.Class<?> testClass)
Deprecated.
|
protected Mockery |
mockeryOf(java.lang.Object test)
Deprecated.
|
protected org.junit.runners.model.Statement |
possiblyExpectingExceptions(org.junit.runners.model.FrameworkMethod method,
java.lang.Object test,
org.junit.runners.model.Statement next)
Deprecated.
|
protected org.junit.runners.model.Statement |
verify(org.junit.runners.model.FrameworkMethod method,
java.lang.Object test,
org.junit.runners.model.Statement next)
Deprecated.
|
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
public JMock(java.lang.Class<?> testClass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
protected java.lang.Object createTest() throws java.lang.Exception
createTest
in class org.junit.runners.BlockJUnit4ClassRunner
java.lang.Exception
@Deprecated protected org.junit.runners.model.Statement possiblyExpectingExceptions(org.junit.runners.model.FrameworkMethod method, java.lang.Object test, org.junit.runners.model.Statement next)
possiblyExpectingExceptions
in class org.junit.runners.BlockJUnit4ClassRunner
protected org.junit.runners.model.Statement verify(org.junit.runners.model.FrameworkMethod method, java.lang.Object test, org.junit.runners.model.Statement next)
protected void assertMockeryIsSatisfied(java.lang.Object test)
protected Mockery mockeryOf(java.lang.Object test)
static java.lang.reflect.Field findMockeryField(java.lang.Class<?> testClass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError