Commit 73748b46 by David Kaspar

BUG-50: Update of DemoDataDriver and TestDataDriver

parent 4f928a8d
...@@ -98,7 +98,7 @@ public class DemoDataDriver { ...@@ -98,7 +98,7 @@ public class DemoDataDriver {
//Returned the Saved Table Objects //Returned the Saved Table Objects
JsonParser jp = new JsonParser(); JsonParser jp = new JsonParser();
JsonObject jo = (JsonObject) jp.parse(driver.getEntityReturnList()); JsonObject jo = (JsonObject) jp.parse(driver.getEntityReturnList());
JsonArray ja = jo.getAsJsonArray("list"); JsonArray ja = jo.getAsJsonArray("results");
for (JsonElement e : ja) { for (JsonElement e : ja) {
JsonObject joInner = (JsonObject) jp JsonObject joInner = (JsonObject) jp
.parse(driver.getTableEntityByGUID(e.getAsString())); .parse(driver.getTableEntityByGUID(e.getAsString()));
...@@ -315,8 +315,7 @@ public class DemoDataDriver { ...@@ -315,8 +315,7 @@ public class DemoDataDriver {
private void sumbitType(String typesAsJSON, String type) private void sumbitType(String typesAsJSON, String type)
throws JSONException { throws JSONException {
WebResource resource = service.path("api/metadata/types/submit").path( WebResource resource = service.path("api/metadata/types/submit");
type);
ClientResponse clientResponse = resource ClientResponse clientResponse = resource
.accept(MediaType.APPLICATION_JSON) .accept(MediaType.APPLICATION_JSON)
......
...@@ -185,8 +185,7 @@ public class TestDataDriver { ...@@ -185,8 +185,7 @@ public class TestDataDriver {
private void sumbitType(String typesAsJSON, String type) throws JSONException { private void sumbitType(String typesAsJSON, String type) throws JSONException {
WebResource resource = service WebResource resource = service
.path("api/metadata/types/submit") .path("api/metadata/types/submit");
.path(type);
ClientResponse clientResponse = resource ClientResponse clientResponse = resource
.accept(MediaType.APPLICATION_JSON) .accept(MediaType.APPLICATION_JSON)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment