I had a similar issue and it also caused me some confusion. If I use SecurityUtils in any unit tests then I always make sure I logout in an @After annotated method, for example:
@After
public void tearDown(){
SecurityUtils.getSubject().logout();
}
--
View this message in context:
http://n2.nabble.com/Shiro-error-on-JUnit-test-tp4755410p4783703.html
Sent from the Shiro User mailing list archive at Nabble.com.
