From 1f079a4b268f092fd3a976006be29b3abe3a3543 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Tue, 4 Oct 2016 22:49:43 +0200 Subject: [PATCH] Improving coverage --- .../java/com/prueba/persistence/dao/AccountDaoIntegrationTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()); -- 2.1.4