Skip to content

Commit

Permalink
Add chained update request as test case for Update queries distinction
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Oct 11, 2024
1 parent fc12b23 commit ba1b51b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/test/java/org/aksw/iguana/cc/query/QueryDataTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ public static void setup() throws IOException {
SELECT ?s ?p ?o WHERE {
?s ?p ?o
}
INSERT DATA {
<http://example.org/s> <http://example.org/p> <http://example.org/o>
}; INSERT DATA {
<http://example.org/s> <http://example.org/p> <http://example.org/o>
}
""");
}

Expand All @@ -55,11 +61,12 @@ void testGeneration() throws IOException {
QueryData.generate(testStrings.stream().map(s -> (InputStream) new ByteArrayInputStream(s.getBytes())).toList())
);
for (List<QueryData> generation : generations) {
assertEquals(4, generation.size());
assertEquals(5, generation.size());
assertFalse(generation.get(0).update());
assertTrue(generation.get(1).update());
assertTrue(generation.get(2).update());
assertFalse(generation.get(3).update());
assertTrue(generation.get(4).update());
}
}
}

0 comments on commit ba1b51b

Please sign in to comment.