#27 gardenplanmodelTest bugfixed

This commit is contained in:
Gian-Andrea Hutter 2022-11-08 23:11:38 +01:00
parent 60c6dcd0d9
commit 78a27499a8
2 changed files with 8 additions and 8 deletions

View File

@ -21,11 +21,11 @@ public class Task {
* default constructor
* (used by Json deserializer)
*/
public Task(long cropId){
public Task(){
name= "";
description= "";
startDate = LocalDate.now();
this.cropId = cropId;
//this.cropId = cropId;
}
public Task(String name, String description, LocalDate startDate, long cropId) {

View File

@ -6,7 +6,7 @@
"startDate" : "2022-05-01",
"endDate" : "2022-05-01",
"interval" : 0,
"cropID" : 0
"cropId" : 0
},
{
"id" : 2,
@ -15,7 +15,7 @@
"startDate" : "2022-05-01",
"endDate" : "2022-09-01",
"interval" : 2,
"cropID" : 0
"cropId" : 0
},
{
"id" : 3,
@ -24,7 +24,7 @@
"startDate" : "2022-06-01",
"endDate" : "2022-08-01",
"interval" : 28,
"cropID" : 0
"cropId" : 0
},
{
"id" : 4,
@ -33,7 +33,7 @@
"startDate" : "2022-07-01",
"endDate" : "2022-07-01",
"interval" : 0,
"cropID" : 0
"cropId" : 0
},
{
"id" : 5,
@ -42,7 +42,7 @@
"startDate" : "2022-05-01",
"endDate" : "2022-09-01",
"interval" : 5,
"cropID" : 0
"cropId" : 0
},
{
"id" : 6,
@ -51,6 +51,6 @@
"startDate" : "2022-09-01",
"endDate" : "2022-09-01",
"interval" : 0,
"cropID" : 0
"cropId" : 0
}
]