Răsfoiți Sursa

Fix assertj

Fix for 4.2.x
Rob Winch 7 ani în urmă
părinte
comite
da19435f21

+ 1 - 1
cas/src/test/java/org/springframework/security/cas/userdetails/GrantedAuthorityFromAssertionAttributesUserDetailsServiceTests.java

@@ -57,7 +57,7 @@ public class GrantedAuthorityFromAssertionAttributesUserDetailsServiceTests {
 				assertion, "ticket");
 		UserDetails user = uds.loadUserDetails(token);
 		Set<String> roles = AuthorityUtils.authorityListToSet(user.getAuthorities());
-		assertThat(roles).containsExactlyInAnyOrder(
+		assertThat(roles).containsOnly(
 				"role_a1", "role_a2", "role_b", "role_c");
 	}
 }