Skip to content

Commit

Permalink
Fixed nodegroup name and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenny Williams committed May 7, 2021
1 parent 5da87ac commit f43f821
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ public static String getResourceAsString(Class c, String fileName) throws Except
String ret = null;
InputStream in = c.getResourceAsStream(fixResourceName(fileName));
if (in == null) {
throw new Exception("Could find resource file: " + fileName);
throw new Exception("Couldn't find resource file: " + fileName);
}

ret = IOUtils.toString(in, StandardCharsets.UTF_8);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void test() throws Exception {
assertTrue("Expected first suggestion of to be " + expect + ". Found " + suggestions.toString(), expect.equals(actual));

// change #name property to #scaryName and we should get Tiger
ng = this.getNodegroupWithUriReplaced("animalquery.json", "#name", "#scaryName");
ng = this.getNodegroupWithUriReplaced("animalQuery.json", "#name", "#scaryName");
node = ng.getNodeBySparqlID("?Animal");
suggestions = ValidationAssistant.suggestNodeClass(oInfo, ng, new NodeGroupItemStr(node));
expect = "http://AnimalSubProps#Tiger";
Expand Down

0 comments on commit f43f821

Please sign in to comment.