protected class UnitilsJUnit4TestClassRunner.TestListenerInvokingMethodRoadie
extends org.junit.internal.runners.MethodRoadie
| Modifier and Type | Field and Description |
|---|---|
protected Method |
testMethod |
protected Object |
testObject |
protected Throwable |
throwable |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFailure(Throwable t)
Registers a test failure
|
void |
runBeforesThenTestThenAfters(Runnable test)
Overriden JUnit4 method to be able to call
TestListener.afterTestTearDown(java.lang.Object, java.lang.reflect.Method). |
protected void |
runTestMethod() |
protected Object testObject
protected Method testMethod
protected Throwable throwable
public UnitilsJUnit4TestClassRunner.TestListenerInvokingMethodRoadie(Object testObject, Method testMethod, org.junit.internal.runners.TestMethod jUnitTestMethod, org.junit.runner.notification.RunNotifier notifier, org.junit.runner.Description description)
testObject - The test instance, not nulltestMethod - The test method, not nulljUnitTestMethod - The JUnit test methodnotifier - The run listener, not nulldescription - A test descriptionpublic void runBeforesThenTestThenAfters(Runnable test)
TestListener.afterTestTearDown(java.lang.Object, java.lang.reflect.Method).runBeforesThenTestThenAfters in class org.junit.internal.runners.MethodRoadieprotected void runTestMethod()
runTestMethod in class org.junit.internal.runners.MethodRoadieprotected void addFailure(Throwable t)
addFailure in class org.junit.internal.runners.MethodRoadiet - The exception, not nullCopyright © 2016. All Rights Reserved.