diff options
Diffstat (limited to 'ufund-api/src/test/java/com/ufund/api/ufundapi/controller')
| -rw-r--r-- | ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java b/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java index 100bf09..94f93cb 100644 --- a/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java +++ b/ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java @@ -37,10 +37,10 @@ public class CupboardControllerTest {          when(mockCupboardService.createNeed(name, maxGoal, type)).thenReturn(need); -        Map<String, String> needMap = Map.ofEntries( +        Map<String, Object> needMap = Map.ofEntries(                  entry("name", "Test"), -                entry("maxGoal", "100"), -                entry("goalType", "MONETARY") +                entry("maxGoal", 100), +                entry("type", "MONETARY")          );          var res = cupboardController.createNeed(needMap); @@ -53,10 +53,10 @@ public class CupboardControllerTest {      public void createNeedBadMaxGoal() throws IOException, DuplicateKeyException {          when(mockCupboardService.createNeed("Name", -100, Need.GoalType.MONETARY)).thenThrow(new IllegalArgumentException()); -        Map<String, String> needMap = Map.ofEntries( +        Map<String, Object> needMap = Map.ofEntries(                  entry("name", "Name"), -                entry("maxGoal", "-100"), -                entry("goalType", "MONETARY")); +                entry("maxGoal", -100), +                entry("type", "MONETARY"));          var res = cupboardController.createNeed(needMap); @@ -67,10 +67,10 @@ public class CupboardControllerTest {      public void createNeedIOException() throws IOException, DuplicateKeyException {          when(mockCupboardService.createNeed("Name", 100, Need.GoalType.MONETARY)).thenThrow(new IOException()); -        Map<String, String> needMap = Map.ofEntries( +        Map<String, Object> needMap = Map.ofEntries(                  entry("name", "Name"), -                entry("maxGoal", "100"), -                entry("goalType", "MONETARY")); +                entry("maxGoal", 100), +                entry("type", "MONETARY"));          var res = cupboardController.createNeed(needMap);  | 
