Use contains() instead of indexOf() != -1
This commit is contained in:
parent
e554547593
commit
7dc28ff376
|
@ -129,7 +129,7 @@ public class UserTests {
|
||||||
"ROLE_ONE");
|
"ROLE_ONE");
|
||||||
assertThat(AuthorityUtils.authorityListToSet(user.getAuthorities())).contains(
|
assertThat(AuthorityUtils.authorityListToSet(user.getAuthorities())).contains(
|
||||||
"ROLE_TWO");
|
"ROLE_TWO");
|
||||||
assertThat(user.toString().indexOf("rod") != -1).isTrue();
|
assertThat(user.toString()).contains("rod");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue