org.jmock.integration.junit4
Class JMock

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.internal.runners.JUnit4ClassRunner
          extended by org.jmock.integration.junit4.JMock
All Implemented Interfaces:
Filterable, Sortable

public class JMock
extends org.junit.internal.runners.JUnit4ClassRunner

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

Constructor Summary
JMock(Class<?> testClass)
           
 
Method Summary
protected  Mockery mockeryOf(Object test)
           
protected  org.junit.internal.runners.TestMethod wrapMethod(Method method)
           
 
Methods inherited from class org.junit.internal.runners.JUnit4ClassRunner
classAnnotations, createTest, filter, getDescription, getName, getTestClass, getTestMethods, invokeTestMethod, methodDescription, run, runMethods, sort, testAnnotations, testName, validate
 
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 org.junit.internal.runners.InitializationError
Throws:
org.junit.internal.runners.InitializationError
Method Detail

wrapMethod

protected org.junit.internal.runners.TestMethod wrapMethod(Method method)
Overrides:
wrapMethod in class org.junit.internal.runners.JUnit4ClassRunner

mockeryOf

protected Mockery mockeryOf(Object test)