JUnitRuleMockery
@Deprecated public class JMock extends 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 | Method and Description |
---|---|
protected void |
assertMockeryIsSatisfied(Object test)
Deprecated.
|
protected Object |
createTest()
Deprecated.
|
protected Mockery |
mockeryOf(Object test)
Deprecated.
|
protected Statement |
possiblyExpectingExceptions(FrameworkMethod method,
Object test,
Statement next)
Deprecated.
|
protected Statement |
verify(FrameworkMethod method,
Object test,
Statement next)
Deprecated.
|
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
public JMock(Class<?> testClass) throws InitializationError
InitializationError
protected Object createTest() throws Exception
createTest
in class BlockJUnit4ClassRunner
Exception
@Deprecated protected Statement possiblyExpectingExceptions(FrameworkMethod method, Object test, Statement next)
possiblyExpectingExceptions
in class BlockJUnit4ClassRunner
protected Statement verify(FrameworkMethod method, Object test, Statement next)
protected void assertMockeryIsSatisfied(Object test)