Hi Al, All of the Shiro project's tests are run in Maven on the command line. You might also consider to clear out everything in the set-up and tear-down phases of each test - most if not all of the Shiro tests do this just in case.
Regards, Les On Thu, Mar 18, 2010 at 3:05 AM, aloleary <[email protected]> wrote: > > OK resolved... > > For anyone who comes up against this in future... > > SecurityUtils.getSubject() in test B was the subject from the previous test > A !! > > Eclipse runs tests in different threads - I always assumed Maven command > line did the same... but it seems to be a single test thread ... > > Anyway I was able to run tests with: > > %>mvn -DforkMode=always test > > And the problem went away > > I need to look at Maven using a single test thread a bit more - > -- > View this message in context: > http://n2.nabble.com/Shiro-error-on-JUnit-test-tp4755410p4755567.html > Sent from the Shiro User mailing list archive at Nabble.com. >
