public class PermissionCheckerMethodTestRule extends MethodTestRule<Void>
| Modifier and Type | Field and Description |
|---|---|
static PermissionCheckerMethodTestRule |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
afterMethod(org.junit.runner.Description description,
Void c,
Object target) |
Void |
beforeMethod(org.junit.runner.Description description,
Object target) |
protected void |
setUpPermissionThreadLocal() |
protected void |
setUpPrincipalThreadLocal() |
afterClass, beforeClass, createClassStatementapply, createMethodStatementpublic static final PermissionCheckerMethodTestRule INSTANCE
public void afterMethod(org.junit.runner.Description description,
Void c,
Object target)
throws Throwable
afterMethod in class AbstractTestRule<Void,Void>Throwablepublic Void beforeMethod(org.junit.runner.Description description,
Object target)
throws Exception
beforeMethod in class AbstractTestRule<Void,Void>Exceptionprotected void setUpPermissionThreadLocal()
throws Exception
Exceptionprotected void setUpPrincipalThreadLocal()
throws Exception
Exception