org.jmock.integration.junit4
Class JMock

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by org.jmock.integration.junit4.JMock
All Implemented Interfaces:
Describable, Filterable, Sortable

Deprecated. For JUnit 4 use JUnitRuleMockery

@Deprecated
public class JMock
extends BlockJUnit4ClassRunner

A test Runner that asserts that all expectations have been met after the test has finished and before the fixture is torn down.

Author:
nat steve.freeman

Constructor Summary
JMock(Class<?> testClass)
          Deprecated.  
 
Method Summary
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.  
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, 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, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMock

public JMock(Class<?> testClass)
      throws InitializationError
Deprecated. 
Throws:
InitializationError
Method Detail

createTest

protected Object createTest()
                     throws Exception
Deprecated. 
Overrides:
createTest in class BlockJUnit4ClassRunner
Throws:
Exception

possiblyExpectingExceptions

@Deprecated
protected Statement possiblyExpectingExceptions(FrameworkMethod method,
                                                           Object test,
                                                           Statement next)
Deprecated. 

Overrides:
possiblyExpectingExceptions in class BlockJUnit4ClassRunner

verify

protected Statement verify(FrameworkMethod method,
                           Object test,
                           Statement next)
Deprecated. 

assertMockeryIsSatisfied

protected void assertMockeryIsSatisfied(Object test)
Deprecated. 

mockeryOf

protected Mockery mockeryOf(Object test)
Deprecated.