From 1826e2618147b369f5493ae108b0f59140374c3c Mon Sep 17 00:00:00 2001 From: Paul Cuddihy Date: Wed, 26 Oct 2022 09:26:25 -0400 Subject: [PATCH] Junit "!" on the end of a random text input --- .../com/ge/research/semtk/load/test/DataLoaderTest_IT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sparqlGraphLibrary/src/test/java/com/ge/research/semtk/load/test/DataLoaderTest_IT.java b/sparqlGraphLibrary/src/test/java/com/ge/research/semtk/load/test/DataLoaderTest_IT.java index 5c66c75e7..3a9e7aeb8 100644 --- a/sparqlGraphLibrary/src/test/java/com/ge/research/semtk/load/test/DataLoaderTest_IT.java +++ b/sparqlGraphLibrary/src/test/java/com/ge/research/semtk/load/test/DataLoaderTest_IT.java @@ -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); @@ -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);