Skip to content

Commit

Permalink
Junit "!" on the end of a random text input
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Cuddihy committed Oct 26, 2022
1 parent c00a2b7 commit 1826e26
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,7 @@ public void testSubtypeExactLookup() throws Exception {
//
sgJson = TestGraph.getSparqlGraphJsonFromResource(this, "/loadTestDuraBatterySubtype.json");
String csv = "subtype,id,desc\n"
+ "Battery!,id1,DuraBattery1 desc\n";
+ "Battery!,id1,DuraBattery1 desc!\n";
ds = new CSVDataset(csv, true);
dl = new DataLoader(sgJson, ds, TestGraph.getUsername(), TestGraph.getPassword());
dl.importData(true);
Expand All @@ -2262,6 +2262,7 @@ public void testSubtypeExactLookup() throws Exception {
assertEquals("Description was ingested multiple times", 1, descCount);
assertEquals("Battery with desc is wrong type", "http://kdl.ge.com/durabattery#Battery", res.getCell(r, "Battery_type"));
assertEquals("Battery with desc has wrong id", "id1", res.getCell(r, "batteryId"));
assertEquals("Description with ! was not ingested properly", "DuraBattery1 desc!", res.getCell(r, "batteryDesc"));
}
}
assertTrue("Battery description was not ingested", descCount != 0);
Expand Down

0 comments on commit 1826e26

Please sign in to comment.