public class LogContext extends TestFailureAwareRule
| Modifier and Type | Field and Description |
|---|---|
static String |
TEST_CLASS |
static String |
TEST_DISPLAY_NAME |
static String |
TEST_METHOD |
static String |
THREAD_ID |
| Constructor and Description |
|---|
LogContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
after(org.junit.runner.Description description,
Throwable testFailure)
Called after all tests always.
|
void |
before(org.junit.runner.Description description)
Can do something before a test.
|
apply, onErrorpublic static final String TEST_CLASS
public static final String TEST_DISPLAY_NAME
public static final String TEST_METHOD
public static final String THREAD_ID
public void before(org.junit.runner.Description description)
throws Throwable
TestFailureAwareRulebefore in class TestFailureAwareRuledescription - junit test description objectThrowable - any error from the testpublic void after(org.junit.runner.Description description,
Throwable testFailure)
throws Throwable
TestFailureAwareRuleafter in class TestFailureAwareRuledescription - junit test description objecttestFailure - in case of failed test it contains an exception. Otherwise nullThrowable - if testFailure is null, it will fly, if testFailure is not null,
it will be added to that as suppressed exception. See Throwable.addSuppressed(Throwable)Copyright © 2017 willhaben internet service GmbH & Co KG. All rights reserved.