public class TracingTestListener extends TestListener
| Modifier and Type | Class and Description |
|---|---|
static class |
TracingTestListener.Call |
static interface |
TracingTestListener.Invocation |
static class |
TracingTestListener.InvocationSource |
static class |
TracingTestListener.ListenerInvocation |
static class |
TracingTestListener.TestFramework |
static class |
TracingTestListener.TestInvocation |
| Constructor and Description |
|---|
TracingTestListener() |
TracingTestListener(TestListener delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCreateTestObject(Object testObject) |
void |
afterTestMethod(Object testObject,
Method testMethod,
Throwable throwable) |
void |
afterTestTearDown(Object testObject,
Method testMethod) |
void |
beforeTestClass(Class<?> testClass) |
void |
beforeTestMethod(Object testObject,
Method testMethod) |
void |
beforeTestSetUp(Object testObject,
Method testMethod) |
void |
expectExceptionInMethod(TracingTestListener.Invocation exceptionMethod,
boolean throwAssertionFailedError) |
List<TracingTestListener.Call> |
getCallList() |
String |
getCallListAsString() |
Throwable |
getCurrentThrowable() |
void |
registerListenerInvocation(TracingTestListener.ListenerInvocation listenerInvocation,
Class<?> testClass,
Object test,
Method testMethod,
Throwable throwable) |
void |
registerTestInvocation(TracingTestListener.TestInvocation invocation,
Class<?> testClass,
String methodName) |
boolean |
shouldInvokeTestMethod(Object testObject,
Method testMethod) |
public TracingTestListener(TestListener delegate)
public TracingTestListener()
public List<TracingTestListener.Call> getCallList()
public String getCallListAsString()
public void expectExceptionInMethod(TracingTestListener.Invocation exceptionMethod, boolean throwAssertionFailedError)
public void registerTestInvocation(TracingTestListener.TestInvocation invocation, Class<?> testClass, String methodName)
public void registerListenerInvocation(TracingTestListener.ListenerInvocation listenerInvocation, Class<?> testClass, Object test, Method testMethod, Throwable throwable)
public void beforeTestClass(Class<?> testClass)
beforeTestClass in class TestListenerpublic void afterCreateTestObject(Object testObject)
afterCreateTestObject in class TestListenerpublic void beforeTestSetUp(Object testObject, Method testMethod)
beforeTestSetUp in class TestListenerpublic void beforeTestMethod(Object testObject, Method testMethod)
beforeTestMethod in class TestListenerpublic void afterTestMethod(Object testObject, Method testMethod, Throwable throwable)
afterTestMethod in class TestListenerpublic void afterTestTearDown(Object testObject, Method testMethod)
afterTestTearDown in class TestListenerpublic boolean shouldInvokeTestMethod(Object testObject, Method testMethod)
shouldInvokeTestMethod in class TestListenerpublic Throwable getCurrentThrowable()
Copyright © 2017. All rights reserved.