aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-03-18 17:08:25 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-03-18 17:08:25 -0400
commitde2913a773510139334fd9d24318ce2aa2676e3c (patch)
tree729334e5a3d5a6810e4f93e97569b402dc8e226e
parent872a87879c83c9dd7548528fd9f9f29246dbd433 (diff)
downloadJellySolutions-de2913a773510139334fd9d24318ce2aa2676e3c.tar.gz
JellySolutions-de2913a773510139334fd9d24318ce2aa2676e3c.tar.bz2
JellySolutions-de2913a773510139334fd9d24318ce2aa2676e3c.zip
Fixed broken tests
-rw-r--r--ufund-api/src/test/java/com/ufund/api/ufundapi/controller/CupboardControllerTest.java8
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);