@Test public void shouldHandleNullManager_For_GetBottomClassNode() { try { when(ontology.getOWLOntologyManager()).thenReturn(null); reasoner.getBottomClassNode(); } catch (NullPointerException e) { fail("NullPointerException"); } }
@Test public void shouldGetTopObjectPropertyNode() { Node<OWLObjectPropertyExpression> node = reasoner.getTopObjectPropertyNode(); assertThat(node.getEntities(), is(Collections.singleton(owlTopObjectProperty))); }
@Test public void shouldGetBottomDataPropertyNode() { Node<OWLDataProperty> node = reasoner.getBottomDataPropertyNode(); assertThat(node.getEntities(), is(Collections.singleton(owlBottomDataProperty))); }
@Test public void shouldGetBottomClassNode() { Node<OWLClass> node = reasoner.getBottomClassNode(); assertThat(node.getEntities(), is(Collections.singleton(owlNothing))); }