Commit 73748b46 by David Kaspar

BUG-50: Update of DemoDataDriver and TestDataDriver

parent 4f928a8d
......@@ -98,7 +98,7 @@ public class DemoDataDriver {
//Returned the Saved Table Objects
JsonParser jp = new JsonParser();
JsonObject jo = (JsonObject) jp.parse(driver.getEntityReturnList());
JsonArray ja = jo.getAsJsonArray("list");
JsonArray ja = jo.getAsJsonArray("results");
for (JsonElement e : ja) {
JsonObject joInner = (JsonObject) jp
.parse(driver.getTableEntityByGUID(e.getAsString()));
......@@ -315,8 +315,7 @@ public class DemoDataDriver {
private void sumbitType(String typesAsJSON, String type)
throws JSONException {
WebResource resource = service.path("api/metadata/types/submit").path(
type);
WebResource resource = service.path("api/metadata/types/submit");
ClientResponse clientResponse = resource
.accept(MediaType.APPLICATION_JSON)
......
......@@ -185,8 +185,7 @@ public class TestDataDriver {
private void sumbitType(String typesAsJSON, String type) throws JSONException {
WebResource resource = service
.path("api/metadata/types/submit")
.path(type);
.path("api/metadata/types/submit");
ClientResponse clientResponse = resource
.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