From: Gustavo Martin Morcuende Date: Tue, 4 Oct 2016 20:49:43 +0000 (+0200) Subject: Improving coverage X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=1f079a4b268f092fd3a976006be29b3abe3a3543;p=WebAppTest%2F.git Improving coverage --- diff --git a/src/test/java/com/prueba/persistence/dao/AccountDaoIntegrationTest.java b/src/test/java/com/prueba/persistence/dao/AccountDaoIntegrationTest.java index b62e88f..60bf351 100644 --- a/src/test/java/com/prueba/persistence/dao/AccountDaoIntegrationTest.java +++ b/src/test/java/com/prueba/persistence/dao/AccountDaoIntegrationTest.java @@ -38,7 +38,7 @@ public class AccountDaoIntegrationTest { assertEquals(expectedAccount.getCode(), account.getCode()); assertEquals(expectedAccount.getName(), account.getName()); assertEquals(expectedAccount.getSurname(), account.getSurname()); - assertEquals(expectedAccount.getPassword(), account.getPassword()); + assertNull(account.getPassword()); assertEquals(expectedAccount.getRole(), account.getRole()); } @@ -54,7 +54,7 @@ public class AccountDaoIntegrationTest { assertEquals(expectedAccount.getCode(), account.getCode()); assertEquals(expectedAccount.getName(), account.getName()); assertEquals(expectedAccount.getSurname(), account.getSurname()); - assertEquals(expectedAccount.getPassword(), account.getPassword()); + assertNull(account.getPassword()); assertEquals(expectedAccount.getRole(), account.getRole()); } @@ -69,7 +69,7 @@ public class AccountDaoIntegrationTest { assertEquals(expectedAccount.getCode(), account.getCode()); assertEquals(expectedAccount.getName(), account.getName()); assertEquals(expectedAccount.getSurname(), account.getSurname()); - assertEquals(expectedAccount.getPassword(), account.getPassword()); + assertNull(account.getPassword()); assertEquals(expectedAccount.getRole(), account.getRole()); accountDao.deleteByCode(expectedAccount.getCode());