SEC-717: Resolve UserDetails.getAuthorities() sort logic issue.
This commit is contained in:
parent
18aa13c7ec
commit
072b76e516
|
@ -240,8 +240,8 @@ public class JbossSpringSecurityLoginModuleTests extends TestCase {
|
||||||
PrincipalSpringSecurityUserToken castResult = (PrincipalSpringSecurityUserToken) result;
|
PrincipalSpringSecurityUserToken castResult = (PrincipalSpringSecurityUserToken) result;
|
||||||
assertEquals("rod", castResult.getPrincipal());
|
assertEquals("rod", castResult.getPrincipal());
|
||||||
assertEquals("koala", castResult.getCredentials());
|
assertEquals("koala", castResult.getCredentials());
|
||||||
assertEquals("ROLE_TELLER", castResult.getAuthorities()[0].getAuthority());
|
assertEquals("ROLE_TELLER", castResult.getAuthorities()[1].getAuthority());
|
||||||
assertEquals("ROLE_SUPERVISOR", castResult.getAuthorities()[1].getAuthority());
|
assertEquals("ROLE_SUPERVISOR", castResult.getAuthorities()[0].getAuthority());
|
||||||
assertEquals(ADAPTER_KEY.hashCode(), castResult.getKeyHash());
|
assertEquals(ADAPTER_KEY.hashCode(), castResult.getKeyHash());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue