We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e554547 commit 7dc28ffCopy full SHA for 7dc28ff
core/src/test/java/org/springframework/security/core/userdetails/UserTests.java
@@ -129,7 +129,7 @@ public void testUserGettersSetter() throws Exception {
129
"ROLE_ONE");
130
assertThat(AuthorityUtils.authorityListToSet(user.getAuthorities())).contains(
131
"ROLE_TWO");
132
- assertThat(user.toString().indexOf("rod") != -1).isTrue();
+ assertThat(user.toString()).contains("rod");
133
}
134
135
@Test
0 commit comments