public class LogAssertionTestRule extends com.liferay.portal.kernel.test.rule.AbstractTestRule<List<CaptureAppender>,List<CaptureAppender>>
| Modifier and Type | Field and Description |
|---|---|
static LogAssertionTestRule |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
afterClass(org.junit.runner.Description description,
List<CaptureAppender> captureAppenders) |
void |
afterMethod(org.junit.runner.Description description,
List<CaptureAppender> captureAppenders,
Object target) |
List<CaptureAppender> |
beforeClass(org.junit.runner.Description description) |
List<CaptureAppender> |
beforeMethod(org.junit.runner.Description description,
Object target) |
static void |
caughtFailure(Error error) |
static void |
endAssert(List<ExpectedLogs> expectedLogsList,
List<CaptureAppender> captureAppenders) |
protected static void |
installJdk14Handler() |
protected static void |
installLog4jAppender() |
protected static boolean |
isExpected(List<ExpectedLogs> expectedLogsList,
String renderedMessage) |
static List<CaptureAppender> |
startAssert(List<ExpectedLogs> expectedLogsList) |
public static final LogAssertionTestRule INSTANCE
public static void caughtFailure(Error error)
public static void endAssert(List<ExpectedLogs> expectedLogsList, List<CaptureAppender> captureAppenders)
public static List<CaptureAppender> startAssert(List<ExpectedLogs> expectedLogsList)
public void afterClass(org.junit.runner.Description description,
List<CaptureAppender> captureAppenders)
afterClass in class com.liferay.portal.kernel.test.rule.AbstractTestRule<List<CaptureAppender>,List<CaptureAppender>>public void afterMethod(org.junit.runner.Description description,
List<CaptureAppender> captureAppenders,
Object target)
afterMethod in class com.liferay.portal.kernel.test.rule.AbstractTestRule<List<CaptureAppender>,List<CaptureAppender>>public List<CaptureAppender> beforeClass(org.junit.runner.Description description)
beforeClass in class com.liferay.portal.kernel.test.rule.AbstractTestRule<List<CaptureAppender>,List<CaptureAppender>>public List<CaptureAppender> beforeMethod(org.junit.runner.Description description, Object target)
beforeMethod in class com.liferay.portal.kernel.test.rule.AbstractTestRule<List<CaptureAppender>,List<CaptureAppender>>protected static void installJdk14Handler()
protected static void installLog4jAppender()
protected static boolean isExpected(List<ExpectedLogs> expectedLogsList, String renderedMessage)