Skip to content

Commit

Permalink
Merge pull request #601 from TNO/add-unit-test-based-on-hedge-support…
Browse files Browse the repository at this point in the history
…-request

Slightly adapt unit test to test additional scenario.
  • Loading branch information
bnouwt authored Feb 3, 2025
2 parents 50d163c + 9b037e9 commit 05846f0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void testAskAnswer() throws InterruptedException {

LOG.info("Waiting for ready...");

GraphPattern gp1 = new GraphPattern(prefixes, "?a <https://www.tno.nl/example/b> ?c.");
GraphPattern gp1 = new GraphPattern(prefixes, "?a <https://www.tno.nl/example/b> <https://www.tno.nl/example/c>.");

CommunicativeAct act1 = new CommunicativeAct(new HashSet<>(Arrays.asList(Vocab.INFORM_PURPOSE)),
new HashSet<>(Arrays.asList(Vocab.RETRIEVE_KNOWLEDGE_PURPOSE)));
Expand All @@ -66,7 +66,6 @@ public void testAskAnswer() throws InterruptedException {
BindingSet bindingSet = new BindingSet();
Binding binding = new Binding();
binding.put("a", "<https://www.tno.nl/example/a>");
binding.put("c", "<https://www.tno.nl/example/c>");
bindingSet.add(binding);

return bindingSet;
Expand Down Expand Up @@ -103,8 +102,8 @@ public void testAskAnswer() throws InterruptedException {
Binding b = iter.next();

assertTrue(!b.containsKey("a") && !b.containsKey("c"),
"The variable names should follow the graph pattern of the current KB.");

"The variable names should follow the graph pattern of the requesting KB.");
assertEquals("<https://www.tno.nl/example/a>", b.get("x"), "Binding of 'x' is incorrect.");
assertEquals("<https://www.tno.nl/example/c>", b.get("y"), "Binding of 'y' is incorrect.");

Expand Down

0 comments on commit 05846f0

Please sign in to comment.