Ejemplo n.º 1
0
 private static JsonValue getDatasetDescription(String dsName) {
   try (TypedInputStream in = execHttpGet(urlRoot + "$/" + opDatasets + "/" + dsName)) {
     assertEqualsIgnoreCase(WebContent.contentTypeJSON, in.getContentType());
     JsonValue v = JSON.parse(in);
     return v;
   }
 }
Ejemplo n.º 2
0
 @Test
 public void list_backups_1() {
   try (TypedInputStream in = execHttpGet(urlRoot + "$/" + opListBackups)) {
     assertEqualsIgnoreCase(WebContent.contentTypeJSON, in.getContentType());
     JsonValue v = JSON.parseAny(in);
     assertNotNull(v.getAsObject().get("backups"));
   }
 }
Ejemplo n.º 3
0
 @Test
 public void list_datasets_2() {
   try (TypedInputStream in = execHttpGet(urlRoot + "$/" + opDatasets)) {
     assertEqualsIgnoreCase(WebContent.contentTypeJSON, in.getContentType());
     JsonValue v = JSON.parseAny(in);
     assertNotNull(v.getAsObject().get("datasets"));
     checkJsonDatasetsAll(v);
   }
 }
Ejemplo n.º 4
0
 private static JsonValue execGetJSON(String url) {
   try (TypedInputStream in = execHttpGet(url)) {
     assertEqualsIgnoreCase(WebContent.contentTypeJSON, in.getContentType());
     return JSON.parse(in);
   }
 }