Hello all,
Can I use in one thread tests subject login/logout. Something like this:
@BeforeAll
protected void doBeforeAll() {
Subject subject = SecurityUtils.getSubject();
subject.login(token);
}
@AfterAll
protected void doAfterAll() {
Subject subject = SecurityUtils.getSubject();
subject.logout();
}
As I understand, subject.login() does thread binding, and subject.logout() does
thread unbinding. So, could anyone say
if this code is correct.
--
Best regards, Alex Orlov
- Subject login/logout in tests Alex Orlov
- Re: Subject login/logout in tests Brian Demers
- Re[2]: Subject login/logout in tests Alex Orlov
- Re: Re[2]: Subject login/logout in tests Brian Demers
- Re[4]: Subject login/logout in tests Alex Orlov
- Re: Re[4]: Subject login/logout i... Brian Demers
- Re: Re[4]: Subject login/logo... sreenivas harshith
