diff --git a/src/main/webapp/WEB-INF/gcube-app.xml b/src/main/webapp/WEB-INF/gcube-app.xml index 35bfbe6..25695eb 100644 --- a/src/main/webapp/WEB-INF/gcube-app.xml +++ b/src/main/webapp/WEB-INF/gcube-app.xml @@ -4,4 +4,6 @@ 1.0.0-SNAPSHOT Data Catalogue Service + /rest/stock/hello + /rest/fishery/hello \ No newline at end of file diff --git a/src/test/java/org/gcube/data_catalogue/grsf_publish_ws/JTests.java b/src/test/java/org/gcube/data_catalogue/grsf_publish_ws/JTests.java index b8caf06..04dd206 100644 --- a/src/test/java/org/gcube/data_catalogue/grsf_publish_ws/JTests.java +++ b/src/test/java/org/gcube/data_catalogue/grsf_publish_ws/JTests.java @@ -23,6 +23,7 @@ import org.gcube.data_catalogue.grsf_publish_ws.utils.HelperMethods; import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Abundance_Level; import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Status; import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Type; +import org.junit.Test; import com.fasterxml.jackson.databind.ObjectMapper; @@ -117,7 +118,7 @@ public class JTests { //@Test public void testJSONMapping() throws IOException{ - StockRecord record = new StockRecord(); + FisheryRecord record = new FisheryRecord(); // record.setType(Type.Assessment_Unit); // record.setFisheryId("sajhdskajda"); // record.setScientificName("assadsadada"); @@ -185,7 +186,7 @@ public class JTests { ObjectMapper mapper = new ObjectMapper(); //Object to JSON in String - String jsonInString = mapper.writeValueAsString(new ResponseCreationBean()); + String jsonInString = mapper.writeValueAsString(record); System.out.println(jsonInString);