diff --git a/src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/ConfirmationTokenTests.java b/src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/ConfirmationTokenTests.java index 4ae4c72..c159fdf 100644 --- a/src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/ConfirmationTokenTests.java +++ b/src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/ConfirmationTokenTests.java @@ -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)); + } }