public class LogAssertionTestRule extends AbstractTestRule<java.util.List<CaptureAppender>,java.util.List<CaptureAppender>>
| Modifier and Type | Field and Description |
|---|---|
static LogAssertionTestRule |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
afterClass(org.junit.runner.Description description,
java.util.List<CaptureAppender> captureAppenders) |
void |
afterMethod(org.junit.runner.Description description,
java.util.List<CaptureAppender> captureAppenders,
java.lang.Object target) |
java.util.List<CaptureAppender> |
beforeClass(org.junit.runner.Description description) |
java.util.List<CaptureAppender> |
beforeMethod(org.junit.runner.Description description,
java.lang.Object target) |
static void |
caughtFailure(java.lang.Error error) |
static void |
endAssert(java.util.List<ExpectedLogs> expectedLogsList,
java.util.List<CaptureAppender> captureAppenders) |
protected static void |
installJdk14Handler() |
protected static void |
installLog4jAppender() |
protected static boolean |
isExpected(java.util.List<ExpectedLogs> expectedLogsList,
java.lang.String renderedMessage) |
static java.util.List<CaptureAppender> |
startAssert(java.util.List<ExpectedLogs> expectedLogsList) |
protected static void |
uninstallJdk14Handler() |
protected static void |
uninstallLog4jAppender() |
apply, createClassStatement, createMethodStatementpublic static final LogAssertionTestRule INSTANCE
public static void caughtFailure(java.lang.Error error)
public static void endAssert(java.util.List<ExpectedLogs> expectedLogsList, java.util.List<CaptureAppender> captureAppenders)
public static java.util.List<CaptureAppender> startAssert(java.util.List<ExpectedLogs> expectedLogsList)
public void afterClass(org.junit.runner.Description description,
java.util.List<CaptureAppender> captureAppenders)
afterClass in class AbstractTestRule<java.util.List<CaptureAppender>,java.util.List<CaptureAppender>>public void afterMethod(org.junit.runner.Description description,
java.util.List<CaptureAppender> captureAppenders,
java.lang.Object target)
afterMethod in class AbstractTestRule<java.util.List<CaptureAppender>,java.util.List<CaptureAppender>>public java.util.List<CaptureAppender> beforeClass(org.junit.runner.Description description)
beforeClass in class AbstractTestRule<java.util.List<CaptureAppender>,java.util.List<CaptureAppender>>public java.util.List<CaptureAppender> beforeMethod(org.junit.runner.Description description, java.lang.Object target)
beforeMethod in class AbstractTestRule<java.util.List<CaptureAppender>,java.util.List<CaptureAppender>>protected static void installJdk14Handler()
protected static void installLog4jAppender()
protected static boolean isExpected(java.util.List<ExpectedLogs> expectedLogsList, java.lang.String renderedMessage)
protected static void uninstallJdk14Handler()
protected static void uninstallLog4jAppender()