Test details using isEqualTo

This commit is contained in:
Tao Sun 2019-12-16 09:27:07 +08:00 committed by Eleftheria Stein-Kousathana
parent 6b0981549b
commit f18d0fd1a7
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ public class UsernamePasswordAuthenticationTokenMixinTests extends AbstractMixin
assertThat(((User) token.getPrincipal()).getAuthorities()).isNotNull().hasSize(1).contains(new SimpleGrantedAuthority("ROLE_USER"));
assertThat(token.isAuthenticated()).isEqualTo(true);
assertThat(token.getAuthorities()).hasSize(1).contains(new SimpleGrantedAuthority("ROLE_USER"));
assertThat(token.getDetails()).isExactlyInstanceOf(String.class);
assertThat(token.getDetails()).isExactlyInstanceOf(String.class).isEqualTo("details");
}
@Test