org.nakedobjects.plugins.headless.junit
Class NakedObjectsTestRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.internal.runners.JUnit4ClassRunner
          extended by org.nakedobjects.plugins.headless.junit.NakedObjectsTestRunner
All Implemented Interfaces:
org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

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

Copied from JMock, and with the same support.


Constructor Summary
NakedObjectsTestRunner(java.lang.Class<?> testClass)
          Only used during object construction.
 
Method Summary
protected  void invokeTestMethod(java.lang.reflect.Method method, org.junit.runner.notification.RunNotifier notifier)
           
protected  org.jmock.Mockery mockeryOf(java.lang.Object test)
          JMock code.
protected  org.junit.internal.runners.TestMethod wrapMethod(java.lang.reflect.Method method)
          Taken from JMock's runner.
 
Methods inherited from class org.junit.internal.runners.JUnit4ClassRunner
classAnnotations, createTest, filter, getDescription, getName, getTestClass, getTestMethods, 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

NakedObjectsTestRunner

public NakedObjectsTestRunner(java.lang.Class<?> testClass)
                       throws org.junit.internal.runners.InitializationError
Only used during object construction.

Throws:
org.junit.internal.runners.InitializationError
Method Detail

invokeTestMethod

protected void invokeTestMethod(java.lang.reflect.Method method,
                                org.junit.runner.notification.RunNotifier notifier)
Overrides:
invokeTestMethod in class org.junit.internal.runners.JUnit4ClassRunner

wrapMethod

protected org.junit.internal.runners.TestMethod wrapMethod(java.lang.reflect.Method method)
Taken from JMock's runner.

Overrides:
wrapMethod in class org.junit.internal.runners.JUnit4ClassRunner

mockeryOf

protected org.jmock.Mockery mockeryOf(java.lang.Object test)
JMock code.

Parameters:
test -
Returns:


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.