use of org.apache.shiro.UnavailableSecurityManagerException in project shiro by apache.
the class AbstractShiroTest method tearDownShiro.
@AfterClass
public static void tearDownShiro() {
doClearSubject();
try {
SecurityManager securityManager = getSecurityManager();
LifecycleUtils.destroy(securityManager);
} catch (UnavailableSecurityManagerException e) {
// we don't care about this when cleaning up the test environment
// (for example, maybe the subclass is a unit test and it didn't
// need a SecurityManager instance because it was using only mock Subject instances)
}
setSecurityManager(null);
}
Aggregations