11791180118111821183118411851186118711881189
// given BuilderSWRLRule builder = new BuilderSWRLRule(df).withBody(v1) .withHead(v2); OWLObject expected = df.getSWRLRule(body, head); // when OWLObject built = builder.buildObject(); // then assertEquals(expected, built); } @Test
12351236123712381239124012411242124312441245
public void shouldBuildSWRLRule() { // given SWRLRule expected = df.getSWRLRule(body, head); BuilderSWRLRule builder = new BuilderSWRLRule(expected, df); // when OWLObject built = builder.buildObject(); // then assertEquals(expected, built); } @Test