mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 21:42:17 +00:00
Use contains() instead of indexOf() != -1
This commit is contained in:
parent
e554547593
commit
7dc28ff376
@ -129,7 +129,7 @@ public class UserTests {
|
||||
"ROLE_ONE");
|
||||
assertThat(AuthorityUtils.authorityListToSet(user.getAuthorities())).contains(
|
||||
"ROLE_TWO");
|
||||
assertThat(user.toString().indexOf("rod") != -1).isTrue();
|
||||
assertThat(user.toString()).contains("rod");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user