diff --git a/robot-core/src/test/java/org/obolibrary/robot/TemplateTest.java b/robot-core/src/test/java/org/obolibrary/robot/TemplateTest.java index 8ff0822d9..8e39eca03 100644 --- a/robot-core/src/test/java/org/obolibrary/robot/TemplateTest.java +++ b/robot-core/src/test/java/org/obolibrary/robot/TemplateTest.java @@ -157,7 +157,7 @@ public void testParseClass() throws Exception { TemplateHelper.tryParse("test", checker, parser, label, 0, 0).asOWLClass(); assert actualClass.getIRI().toString().equals(expectedClass.getIRI().toString()); } - + /** * Test named individual with split property. * @@ -165,11 +165,11 @@ public void testParseClass() throws Exception { */ @Test public void testNamedIndividualSplit() throws Exception { - Map options = TemplateOperation.getDefaultOptions(); - IOHelper ioHelper = new IOHelper(); - ioHelper.addPrefix("ex", "http://example.com/"); - - Map>> tables = new LinkedHashMap<>(); + Map options = TemplateOperation.getDefaultOptions(); + IOHelper ioHelper = new IOHelper(); + ioHelper.addPrefix("ex", "http://example.com/"); + + Map>> tables = new LinkedHashMap<>(); String path = "/template-individual-split.csv"; tables.put(path, TemplateHelper.readCSV(this.getClass().getResourceAsStream(path))); @@ -177,8 +177,13 @@ public void testNamedIndividualSplit() throws Exception { assertEquals("Count individuals", 1, ontology.getIndividualsInSignature().size()); OWLNamedIndividual namedIndividual = ontology.getIndividualsInSignature().iterator().next(); - assertEquals("Count annotation properties", 1, ontology.getAnnotationPropertiesInSignature().size()); - OWLAnnotationProperty annotationProperty = ontology.getAnnotationPropertiesInSignature().iterator().next(); - assertEquals("Count data properties of individual", 2, EntitySearcher.getAnnotationObjects(namedIndividual, ontology, annotationProperty).size()); + assertEquals( + "Count annotation properties", 1, ontology.getAnnotationPropertiesInSignature().size()); + OWLAnnotationProperty annotationProperty = + ontology.getAnnotationPropertiesInSignature().iterator().next(); + assertEquals( + "Count annotation properties of individual", + 2, + EntitySearcher.getAnnotationObjects(namedIndividual, ontology, annotationProperty).size()); } }