Skip to content
Snippets Groups Projects
Commit ee43d949 authored by TROMEL LOUIS's avatar TROMEL LOUIS
Browse files

tests mal nettoyés

parent 3c18ca4a
No related branches found
No related tags found
No related merge requests found
......@@ -39,16 +39,15 @@ public class UserAnonymizerTest {
@Before
public void setUp() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
if (account != null) {
userDao.delete(account);
}
userDao.findAll().forEach(acc -> userDao.delete(acc));
account = new User();
final LocalDateTime dateSixYearsAgo = LocalDateTime.now().minusYears(6);
final LocalDateTime dateSixYearsAgo = LocalDateTime.now().minusYears(5);
account.setDateCreate(dateSixYearsAgo);
account.setLastConnection(dateSixYearsAgo);
account.setUserName("test");
account.setEmail("test@test.fr");
account.setEmail("anothertestmail@test.fr");
userDao.create(account);
anonymizer = new UserAnonymizer();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment