Package com.liferay.portal.test.rule
Class LogAssertionTestRule
Object
com.liferay.portal.kernel.test.rule.AbstractTestRule<List<LogCapture>,List<LogCapture>>
com.liferay.portal.test.rule.LogAssertionTestRule
- All Implemented Interfaces:
org.junit.rules.TestRule
- Author:
- Shuyang Zhou
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterClass
(org.junit.runner.Description description, List<LogCapture> logCaptures) void
afterMethod
(org.junit.runner.Description description, List<LogCapture> logCaptures, Object target) beforeClass
(org.junit.runner.Description description) beforeMethod
(org.junit.runner.Description description, Object target) static void
caughtFailure
(Error error) static void
endAssert
(List<ExpectedLogs> expectedLogsList, List<LogCapture> logCaptures) protected static void
protected static void
protected static boolean
isExpected
(List<ExpectedLogs> expectedLogsList, String renderedMessage) static List<LogCapture>
startAssert
(List<ExpectedLogs> expectedLogsList) protected static void
protected static void
Methods inherited from class com.liferay.portal.kernel.test.rule.AbstractTestRule
apply, createClassStatement, createMethodStatement
-
Field Details
-
INSTANCE
-
-
Method Details
-
caughtFailure
-
endAssert
-
startAssert
-
afterClass
- Specified by:
afterClass
in classAbstractTestRule<List<LogCapture>,
List<LogCapture>>
-
afterMethod
public void afterMethod(org.junit.runner.Description description, List<LogCapture> logCaptures, Object target) - Specified by:
afterMethod
in classAbstractTestRule<List<LogCapture>,
List<LogCapture>>
-
beforeClass
- Specified by:
beforeClass
in classAbstractTestRule<List<LogCapture>,
List<LogCapture>>
-
beforeMethod
- Specified by:
beforeMethod
in classAbstractTestRule<List<LogCapture>,
List<LogCapture>>
-
installJdk14Handler
protected static void installJdk14Handler() -
installLog4jAppender
protected static void installLog4jAppender() -
isExpected
-
uninstallJdk14Handler
protected static void uninstallJdk14Handler() -
uninstallLog4jAppender
protected static void uninstallLog4jAppender()
-