public class MethodExecutionTrace
extends org.junit.rules.TestWatcher
| Constructor and Description |
|---|
MethodExecutionTrace()
This constructor will configure log4j using the log4j-trace.properties file from the
test.util jar, which uses MemoryAppender so failed tests will print out the trace level log messages
to help diagnose the failure.
|
MethodExecutionTrace(Properties log4jProperties) |
MethodExecutionTrace(String log4jPropertiesResourceName)
Use this constructor to set up a particular log4j configuration using a properties file
available on the classpath, or null if you do not want to load any log4j configuration
properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
failed(Throwable e,
org.junit.runner.Description description) |
void |
starting(org.junit.runner.Description description) |
void |
succeeded(org.junit.runner.Description description) |
public MethodExecutionTrace()
public MethodExecutionTrace(String log4jPropertiesResourceName)
log4jPropertiesResourceName - public MethodExecutionTrace(Properties log4jProperties)
public void starting(org.junit.runner.Description description)
starting in class org.junit.rules.TestWatcherpublic void failed(Throwable e, org.junit.runner.Description description)
failed in class org.junit.rules.TestWatcherpublic void succeeded(org.junit.runner.Description description)
succeeded in class org.junit.rules.TestWatcherCopyright © 2014–2017. All rights reserved.