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