com.liferay.portal.test.rule.callback
Class LogAssertionTestCallback
java.lang.Object
com.liferay.portal.kernel.test.rule.callback.BaseTestCallback<List<CaptureAppender>,List<CaptureAppender>>
com.liferay.portal.test.rule.callback.LogAssertionTestCallback
- All Implemented Interfaces:
- TestCallback<List<CaptureAppender>,List<CaptureAppender>>
public class LogAssertionTestCallback
- extends BaseTestCallback<List<CaptureAppender>,List<CaptureAppender>>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final LogAssertionTestCallback INSTANCE
caughtFailure
public static void caughtFailure(Error error)
endAssert
public static void endAssert(List<ExpectedLogs> expectedLogsList,
List<CaptureAppender> captureAppenders)
startAssert
public static List<CaptureAppender> startAssert(List<ExpectedLogs> expectedLogsList)
doAfterClass
public void doAfterClass(org.junit.runner.Description description,
List<CaptureAppender> captureAppenders)
- Overrides:
doAfterClass in class BaseTestCallback<List<CaptureAppender>,List<CaptureAppender>>
doAfterMethod
public void doAfterMethod(org.junit.runner.Description description,
List<CaptureAppender> captureAppenders,
Object target)
- Overrides:
doAfterMethod in class BaseTestCallback<List<CaptureAppender>,List<CaptureAppender>>
doBeforeClass
public List<CaptureAppender> doBeforeClass(org.junit.runner.Description description)
- Overrides:
doBeforeClass in class BaseTestCallback<List<CaptureAppender>,List<CaptureAppender>>
doBeforeMethod
public List<CaptureAppender> doBeforeMethod(org.junit.runner.Description description,
Object target)
- Overrides:
doBeforeMethod in class BaseTestCallback<List<CaptureAppender>,List<CaptureAppender>>
installJdk14Handler
protected static void installJdk14Handler()
installLog4jAppender
protected static void installLog4jAppender()
isExpected
protected static boolean isExpected(List<ExpectedLogs> expectedLogsList,
String renderedMessage)