From 92d8d0bc472127c0cf7f9a7442b3b31e56554087 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Fri, 14 Oct 2016 12:44:38 +0000 Subject: [PATCH] added elements for hello methods (i.e. they no longer require the token to be used) git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@133198 82a268e6-3cf1-43bd-a215-b396298e98cf --- src/main/webapp/WEB-INF/gcube-app.xml | 2 ++ .../org/gcube/data_catalogue/grsf_publish_ws/JTests.java | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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);