diff options
Diffstat (limited to 'ufund-api/src/test/java/com/ufund/api/ufundapi/persistence')
| -rw-r--r-- | ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/CupboardFileDAOTest.java | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/CupboardFileDAOTest.java b/ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/CupboardFileDAOTest.java index acb759a..76a8b40 100644 --- a/ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/CupboardFileDAOTest.java +++ b/ufund-api/src/test/java/com/ufund/api/ufundapi/persistence/CupboardFileDAOTest.java @@ -28,9 +28,9 @@ public class CupboardFileDAOTest {  	public void setupCupboardFileDao() throws IOException {          ObjectMapper mockObjectMapper = mock(ObjectMapper.class);  		testNeeds = new Need[] { -				new Need("one", "Atlantis", 0, 100, Need.GoalType.MONETARY, false), -				new Need("two", "Atlantis", 1, 100, Need.GoalType.MONETARY, false), -				new Need("three", "Atlantis", 2, 100, Need.GoalType.MONETARY, false) +				new Need("one", "", "Atlantis", 0, 100, Need.GoalType.MONETARY, false, ""), +				new Need("two", "", "Atlantis", 1, 100, Need.GoalType.MONETARY, false, ""), +				new Need("three", "", "Atlantis", 2, 100, Need.GoalType.MONETARY, false, "")  		};  		// When the object mapper is supposed to read from the file  		// the mock object mapper will return the hero array above @@ -54,7 +54,7 @@ public class CupboardFileDAOTest {  	@Test  	public void createNeedTest() throws IOException { -		Need newNeed = new Need("sea urchin hats", "Atlantis", 100, GoalType.PHYSICAL, false); +		Need newNeed = new Need("sea urchin hats", "", "Atlantis", 100, GoalType.PHYSICAL, false, "");  		Need actualNeed = cupboardFileDao.addNeed(newNeed); @@ -90,7 +90,7 @@ public class CupboardFileDAOTest {  		Need unupdatedNeed = needs[needs.length - 1];  		assertNotNull(unupdatedNeed); -		Need updatedNeed = new Need("sequin sea urchin hats", "Atlantis", 100, GoalType.PHYSICAL, false); +		Need updatedNeed = new Need("sequin sea urchin hats", "", "Atlantis", 100, GoalType.PHYSICAL, false, "");  		Need actualNeed = cupboardFileDao.updateNeed(updatedNeed);  		assertEquals(actualNeed, updatedNeed); @@ -103,7 +103,7 @@ public class CupboardFileDAOTest {  		Need unupdatedNeed = needs[needs.length - 1];  		assertNotNull(unupdatedNeed); -		Need updatedNeed = new Need("sequin sea urchin hats", "Atlantis", 5, 100, GoalType.PHYSICAL, false); +		Need updatedNeed = new Need("sequin sea urchin hats", "", "Atlantis", 5, 100, GoalType.PHYSICAL, false, "");  		Need actualNeed = cupboardFileDao.updateNeed(updatedNeed);  		assertNull(actualNeed);  | 
