From bceed5355b1a32ea9dc342c0c5fd3c411bc2dd99 Mon Sep 17 00:00:00 2001 From: Simon Spero Date: Sun, 16 Aug 2015 19:23:37 -0400 Subject: [PATCH] Change test case to use p.getInverseProperty() method to get an inverse, rather than calling the data factory constructor method. In the old code, the data factory method would be called by this anyway. --- .../ObjectPropertySimplifierTestCase.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/contract/src/test/java/org/semanticweb/owlapi/api/test/objectproperties/ObjectPropertySimplifierTestCase.java b/contract/src/test/java/org/semanticweb/owlapi/api/test/objectproperties/ObjectPropertySimplifierTestCase.java index 0059db0c8a..7a77ba745a 100644 --- a/contract/src/test/java/org/semanticweb/owlapi/api/test/objectproperties/ObjectPropertySimplifierTestCase.java +++ b/contract/src/test/java/org/semanticweb/owlapi/api/test/objectproperties/ObjectPropertySimplifierTestCase.java @@ -38,7 +38,7 @@ public void testNamedSimplification() { @Test public void testInverseSimplification() { OWLObjectProperty p = ObjectProperty(IRI("p")); - OWLObjectPropertyExpression inv = ObjectInverseOf(p); + OWLObjectPropertyExpression inv = p.getInverseProperty(); OWLObjectPropertyExpression exp = inv.getSimplified(); assertEquals(inv, exp); } @@ -46,8 +46,8 @@ public void testInverseSimplification() { @Test public void testInverseInverseSimplification() { OWLObjectProperty p = ObjectProperty(IRI("p")); - OWLObjectPropertyExpression inv = ObjectInverseOf(p); - OWLObjectPropertyExpression inv2 = ObjectInverseOf(inv); + OWLObjectPropertyExpression inv = p.getInverseProperty(); + OWLObjectPropertyExpression inv2 = inv.getInverseProperty(); OWLObjectPropertyExpression exp = inv2.getSimplified(); assertEquals(p, exp); } @@ -55,9 +55,9 @@ public void testInverseInverseSimplification() { @Test public void testInverseInverseInverseSimplification() { OWLObjectProperty p = ObjectProperty(IRI("p")); - OWLObjectPropertyExpression inv = ObjectInverseOf(p); - OWLObjectPropertyExpression inv2 = ObjectInverseOf(inv); - OWLObjectPropertyExpression inv3 = ObjectInverseOf(inv2); + OWLObjectPropertyExpression inv = p.getInverseProperty(); + OWLObjectPropertyExpression inv2 = inv.getInverseProperty(); + OWLObjectPropertyExpression inv3 = inv2.getInverseProperty(); OWLObjectPropertyExpression exp = inv3.getSimplified(); assertEquals(inv, exp); }