diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-18 17:08:25 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-18 17:08:25 -0400 |
commit | de2913a773510139334fd9d24318ce2aa2676e3c (patch) | |
tree | 729334e5a3d5a6810e4f93e97569b402dc8e226e /ufund-api | |
parent | 872a87879c83c9dd7548528fd9f9f29246dbd433 (diff) | |
download | JellySolutions-de2913a773510139334fd9d24318ce2aa2676e3c.tar.gz JellySolutions-de2913a773510139334fd9d24318ce2aa2676e3c.tar.bz2 JellySolutions-de2913a773510139334fd9d24318ce2aa2676e3c.zip |
Fixed broken tests
Diffstat (limited to 'ufund-api')
-rw-r--r-- | ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java | 8 |
1 files changed, 4 insertions, 4 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 94f93cb..6ef6710 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 @@ -39,7 +39,7 @@ public class CupboardControllerTest { Map<String, Object> needMap = Map.ofEntries( entry("name", "Test"), - entry("maxGoal", 100), + entry("maxGoal", 100.0), entry("type", "MONETARY") ); @@ -55,12 +55,12 @@ public class CupboardControllerTest { Map<String, Object> needMap = Map.ofEntries( entry("name", "Name"), - entry("maxGoal", -100), + entry("maxGoal", -100.0), entry("type", "MONETARY")); var res = cupboardController.createNeed(needMap); - assertEquals(HttpStatus.UNPROCESSABLE_ENTITY, res.getStatusCode()); + assertEquals(HttpStatus.BAD_REQUEST, res.getStatusCode()); } @Test @@ -69,7 +69,7 @@ public class CupboardControllerTest { Map<String, Object> needMap = Map.ofEntries( entry("name", "Name"), - entry("maxGoal", 100), + entry("maxGoal", 100.0), entry("type", "MONETARY")); var res = cupboardController.createNeed(needMap); |