org.unitils
Class UnitilsJUnit4TestClassRunner.TestListenerInvokingMethodRoadie
java.lang.Object
org.junit.internal.runners.MethodRoadie
org.unitils.UnitilsJUnit4TestClassRunner.TestListenerInvokingMethodRoadie
- Enclosing class:
- UnitilsJUnit4TestClassRunner
protected class UnitilsJUnit4TestClassRunner.TestListenerInvokingMethodRoadie
- extends org.junit.internal.runners.MethodRoadie
Custom method roadie that invokes the unitils test listener methods at the apropriate moments.
Methods inherited from class org.junit.internal.runners.MethodRoadie |
run, runTest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
testObject
protected Object testObject
testMethod
protected Method testMethod
throwable
protected Throwable throwable
UnitilsJUnit4TestClassRunner.TestListenerInvokingMethodRoadie
public UnitilsJUnit4TestClassRunner.TestListenerInvokingMethodRoadie(Object testObject,
Method testMethod,
org.junit.internal.runners.TestMethod jUnitTestMethod,
org.junit.runner.notification.RunNotifier notifier,
org.junit.runner.Description description)
- Creates a method roadie.
- Parameters:
testObject
- The test instance, not nulltestMethod
- The test method, not nulljUnitTestMethod
- The JUnit test methodnotifier
- The run listener, not nulldescription
- A test description
runBeforesThenTestThenAfters
public void runBeforesThenTestThenAfters(Runnable test)
- Overriden JUnit4 method to be able to call
TestListener.afterTestTearDown(java.lang.Object, java.lang.reflect.Method)
.
- Overrides:
runBeforesThenTestThenAfters
in class org.junit.internal.runners.MethodRoadie
runTestMethod
protected void runTestMethod()
- Overrides:
runTestMethod
in class org.junit.internal.runners.MethodRoadie
addFailure
protected void addFailure(Throwable t)
- Registers a test failure
- Overrides:
addFailure
in class org.junit.internal.runners.MethodRoadie
- Parameters:
t
- The exception, not null
Copyright © 2011. All Rights Reserved.