You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by GitBox <gi...@apache.org> on 2021/04/07 23:34:48 UTC

[GitHub] [jena] bsara commented on a change in pull request #980: JENA-2081: add /$/compact/* endpoint to fuseki main

bsara commented on a change in pull request #980:
URL: https://github.com/apache/jena/pull/980#discussion_r609140122



##########
File path: jena-fuseki2/jena-fuseki-main/src/test/java/org/apache/jena/fuseki/main/TestFusekiMainCmd.java
##########
@@ -102,4 +103,11 @@ private void server(String... cmdline) {
             assertNotEquals(0, x.readAllBytes().length);
         }
     }
+
+    @Test public void tasks_01() {
+        server("--mem", "--tasks", "/ds");
+        String x = HttpOp.execHttpGetString(serverURL+"/$/tasks");
+        assertNotNull(x);
+        assertNotEquals(0, x.length());

Review comment:
       `JSON.parse` throws an error when calling it on `x` here because the root type of the JSON returned is a list, not an object. I opted to not update the parser to handle lists because it seemed silly to update it for this one test.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org