Merge branch '94-tests' into 'dev'

test equal

Closes #94

See merge request sa4-2020/the-sanmarinoes/backend!195
This commit is contained in:
Matteo Omenetti 2020-05-26 18:58:32 +02:00
commit b8b55d4efb

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