Package com.liferay.portal.test.rule
Class PermissionCheckerMethodTestRule
Object
com.liferay.portal.kernel.test.rule.AbstractTestRule<Void,M>
com.liferay.portal.kernel.test.rule.MethodTestRule<Void>
com.liferay.portal.test.rule.PermissionCheckerMethodTestRule
- All Implemented Interfaces:
org.junit.rules.TestRule
- Author:
- Tom Wang
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterMethod
(org.junit.runner.Description description, Void c, Object target) beforeMethod
(org.junit.runner.Description description, Object target) protected void
protected void
Methods inherited from class com.liferay.portal.kernel.test.rule.MethodTestRule
afterClass, beforeClass, createClassStatement
Methods inherited from class com.liferay.portal.kernel.test.rule.AbstractTestRule
apply, createMethodStatement
-
Field Details
-
INSTANCE
-
-
Method Details
-
afterMethod
public void afterMethod(org.junit.runner.Description description, Void c, Object target) throws Throwable - Specified by:
afterMethod
in classAbstractTestRule<Void,
Void> - Throws:
Throwable
-
beforeMethod
- Specified by:
beforeMethod
in classAbstractTestRule<Void,
Void> - Throws:
Exception
-
setUpPermissionThreadLocal
- Throws:
Exception
-
setUpPrincipalThreadLocal
- Throws:
Exception
-