Merge branch '94-tests' into 'dev'
test equal Closes #94 See merge request sa4-2020/the-sanmarinoes/backend!195
This commit is contained in:
commit
b8b55d4efb
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