test equal

This commit is contained in:
omenem 2020-05-26 18:55:21 +02:00
parent 86c87ece65
commit bbf13d4bef

View file

@ -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));
}
}