Improving coverage
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 4 Oct 2016 20:49:43 +0000 (22:49 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 4 Oct 2016 20:49:43 +0000 (22:49 +0200)
src/test/java/com/prueba/persistence/dao/AccountDaoIntegrationTest.java

index b62e88f..60bf351 100644 (file)
@@ -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());