test equal
This commit is contained in:
parent
86c87ece65
commit
bbf13d4bef
1 changed files with 14 additions and 0 deletions
|
@ -60,4 +60,18 @@ public class ConfirmationTokenTests {
|
|||
token.setConfirmToken(newToken);
|
||||
assertEquals(newToken, token.getConfirmToken());
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("test setConfirmToken")
|
||||
public void equals() {
|
||||
User user = new User();
|
||||
user.setName("Tizio Sempronio");
|
||||
user.setId(42l);
|
||||
user.setUsername("xXCoolUserNameXx");
|
||||
user.setEmail("realMail@service.ext");
|
||||
user.setPassword("alpaca");
|
||||
ConfirmationToken t = new ConfirmationToken(user);
|
||||
|
||||
assertFalse(t.equals(token));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue