From 18aa13c7ec18bd0c0094558f61dd02837dc6c9d7 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Sun, 16 Mar 2008 04:49:18 +0000 Subject: [PATCH] SEC-717: Resolve UserDetails.getAuthorities() sort logic issue. --- .../security/adapters/jetty/JettyAcegiUserRealmTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adapters/jetty/src/test/java/org/springframework/security/adapters/jetty/JettyAcegiUserRealmTests.java b/adapters/jetty/src/test/java/org/springframework/security/adapters/jetty/JettyAcegiUserRealmTests.java index 9e36f3c666..eb86fe049b 100644 --- a/adapters/jetty/src/test/java/org/springframework/security/adapters/jetty/JettyAcegiUserRealmTests.java +++ b/adapters/jetty/src/test/java/org/springframework/security/adapters/jetty/JettyAcegiUserRealmTests.java @@ -164,8 +164,8 @@ public class JettyAcegiUserRealmTests extends TestCase { JettySpringSecurityUserToken castResult = (JettySpringSecurityUserToken) result; assertEquals("rod", castResult.getPrincipal()); assertEquals("koala", castResult.getCredentials()); - assertEquals("ROLE_TELLER", castResult.getAuthorities()[0].getAuthority()); - assertEquals("ROLE_SUPERVISOR", castResult.getAuthorities()[1].getAuthority()); + assertEquals("ROLE_TELLER", castResult.getAuthorities()[1].getAuthority()); + assertEquals("ROLE_SUPERVISOR", castResult.getAuthorities()[0].getAuthority()); assertEquals(ADAPTER_KEY.hashCode(), castResult.getKeyHash()); }