Test details using isEqualTo
This commit is contained in:
parent
6b0981549b
commit
f18d0fd1a7
|
@ -168,7 +168,7 @@ public class UsernamePasswordAuthenticationTokenMixinTests extends AbstractMixin
|
||||||
assertThat(((User) token.getPrincipal()).getAuthorities()).isNotNull().hasSize(1).contains(new SimpleGrantedAuthority("ROLE_USER"));
|
assertThat(((User) token.getPrincipal()).getAuthorities()).isNotNull().hasSize(1).contains(new SimpleGrantedAuthority("ROLE_USER"));
|
||||||
assertThat(token.isAuthenticated()).isEqualTo(true);
|
assertThat(token.isAuthenticated()).isEqualTo(true);
|
||||||
assertThat(token.getAuthorities()).hasSize(1).contains(new SimpleGrantedAuthority("ROLE_USER"));
|
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
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue