Package org.jmock.integration.junit4
Class JMock
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
- org.junit.runners.BlockJUnit4ClassRunner
-
- org.jmock.integration.junit4.JMock
-
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
@Deprecated public class JMock extends org.junit.runners.BlockJUnit4ClassRunnerDeprecated.For JUnit 4 useJUnitRuleMockeryA testRunnerthat asserts that all expectations have been met after the test has finished and before the fixture is torn down.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.FieldmockeryFieldDeprecated.
-
Constructor Summary
Constructors Constructor Description JMock(java.lang.Class<?> testClass)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidassertMockeryIsSatisfied(java.lang.Object test)Deprecated.protected java.lang.ObjectcreateTest()Deprecated.(package private) static java.lang.reflect.FieldfindMockeryField(java.lang.Class<?> testClass)Deprecated.protected MockerymockeryOf(java.lang.Object test)Deprecated.protected org.junit.runners.model.StatementpossiblyExpectingExceptions(org.junit.runners.model.FrameworkMethod method, java.lang.Object test, org.junit.runners.model.Statement next)Deprecated.protected org.junit.runners.model.Statementverify(org.junit.runners.model.FrameworkMethod method, java.lang.Object test, org.junit.runners.model.Statement next)Deprecated.-
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
-
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
-
-
-
-
Method Detail
-
createTest
protected java.lang.Object createTest() throws java.lang.ExceptionDeprecated.- Overrides:
createTestin classorg.junit.runners.BlockJUnit4ClassRunner- Throws:
java.lang.Exception
-
possiblyExpectingExceptions
@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.- Overrides:
possiblyExpectingExceptionsin classorg.junit.runners.BlockJUnit4ClassRunner
-
verify
protected org.junit.runners.model.Statement verify(org.junit.runners.model.FrameworkMethod method, java.lang.Object test, org.junit.runners.model.Statement next)Deprecated.
-
assertMockeryIsSatisfied
protected void assertMockeryIsSatisfied(java.lang.Object test)
Deprecated.
-
mockeryOf
protected Mockery mockeryOf(java.lang.Object test)
Deprecated.
-
findMockeryField
static java.lang.reflect.Field findMockeryField(java.lang.Class<?> testClass) throws org.junit.runners.model.InitializationErrorDeprecated.- Throws:
org.junit.runners.model.InitializationError
-
-