public abstract class AbstractShiroTest extends Object
Constructor and Description |
---|
AbstractShiroTest()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearSubject()
Clears Shiro's thread state, ensuring the thread remains clean for future test execution.
|
protected org.apache.shiro.util.ThreadState |
createThreadState(org.apache.shiro.subject.Subject subject) |
protected static org.apache.shiro.mgt.SecurityManager |
getSecurityManager() |
protected org.apache.shiro.subject.Subject |
getSubject() |
protected static void |
setSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager) |
protected void |
setSubject(org.apache.shiro.subject.Subject subject)
Allows subclasses to set the currently executing
Subject instance. |
static void |
tearDownShiro()
Clear shiro configuration and dependencies after all tests of the class.
|
protected void setSubject(org.apache.shiro.subject.Subject subject)
Subject
instance.subject
- the Subject instanceprotected org.apache.shiro.subject.Subject getSubject()
protected org.apache.shiro.util.ThreadState createThreadState(org.apache.shiro.subject.Subject subject)
protected void clearSubject()
protected static void setSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager)
protected static org.apache.shiro.mgt.SecurityManager getSecurityManager()
public static void tearDownShiro()
Copyright © 2018 Vitam. All rights reserved.