aboutsummaryrefslogtreecommitdiff
path: root/ufund-api/src/test/java/com/ufund/api/ufundapi/model/NeedTest.java
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-03-31 20:44:22 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-03-31 20:44:22 -0400
commitcd8b846a4455aba7664cc03e219f471d251ff9bf (patch)
tree68f0cf06368cfd707be6ce54772a1ee14e6fa35f /ufund-api/src/test/java/com/ufund/api/ufundapi/model/NeedTest.java
parente1ef22279baccb4b2a5a1ecbb5222e4008d4d523 (diff)
downloadJellySolutions-cd8b846a4455aba7664cc03e219f471d251ff9bf.tar.gz
JellySolutions-cd8b846a4455aba7664cc03e219f471d251ff9bf.tar.bz2
JellySolutions-cd8b846a4455aba7664cc03e219f471d251ff9bf.zip
Fixed broken tests due to new need fields
Diffstat (limited to 'ufund-api/src/test/java/com/ufund/api/ufundapi/model/NeedTest.java')
-rw-r--r--ufund-api/src/test/java/com/ufund/api/ufundapi/model/NeedTest.java24
1 files changed, 18 insertions, 6 deletions
diff --git a/ufund-api/src/test/java/com/ufund/api/ufundapi/model/NeedTest.java b/ufund-api/src/test/java/com/ufund/api/ufundapi/model/NeedTest.java
index c7d17c7..67d2b8f 100644
--- a/ufund-api/src/test/java/com/ufund/api/ufundapi/model/NeedTest.java
+++ b/ufund-api/src/test/java/com/ufund/api/ufundapi/model/NeedTest.java
@@ -18,7 +18,9 @@ public class NeedTest {
double maxGoal = 100.0;
GoalType type = Need.GoalType.MONETARY;
boolean urgent = false;
- var need = new Need(name, location, maxGoal, type, urgent);
+ String image = "";
+ String description = "";
+ var need = new Need(name, location, image, maxGoal, type, urgent, description);
assertNotNull(need);
}
@@ -29,7 +31,9 @@ public class NeedTest {
double maxGoal = 100.0;
GoalType type = Need.GoalType.MONETARY;
boolean urgent = false;
- var need = new Need(name, location, maxGoal, type, urgent);
+ String image = "";
+ String description = "";
+ var need = new Need(name, location, image, maxGoal, type, urgent, description);
assertEquals(name, need.getName());
@@ -45,7 +49,9 @@ public class NeedTest {
double maxGoal = 100.0;
GoalType type = Need.GoalType.MONETARY;
boolean urgent = false;
- var need = new Need(name, location, maxGoal, type, urgent);
+ String image = "";
+ String description = "";
+ var need = new Need(name, location, image, maxGoal, type, urgent, description);
double current = 0.00;
need.setCurrent(current);
@@ -69,7 +75,9 @@ public class NeedTest {
double maxGoal = 100.0;
GoalType type = Need.GoalType.MONETARY;
boolean urgent = false;
- var need = new Need(name, location, maxGoal, type, urgent);
+ String image = "";
+ String description = "";
+ var need = new Need(name, location, image, maxGoal, type, urgent, description);
String[] filterAttributes = {"seaweed", "divers", "pacific", "plankton"};
@@ -86,7 +94,9 @@ public class NeedTest {
double maxGoal = 100.0;
GoalType type = Need.GoalType.MONETARY;
boolean urgent = false;
- var need = new Need(name, location, maxGoal, type, urgent);
+ String image = "";
+ String description = "";
+ var need = new Need(name, location, image, maxGoal, type, urgent, description);
double newGoal = 200.00;
need.setMaxGoal(newGoal);
@@ -103,7 +113,9 @@ public class NeedTest {
double maxGoal = 100.0;
GoalType type = Need.GoalType.MONETARY;
boolean urgent = false;
- var need = new Need(name, location, maxGoal, type, urgent);
+ String image = "";
+ String description = "";
+ var need = new Need(name, location, image, maxGoal, type, urgent, description);
String newName = "TESTINGFUN";
need.setName(newName);