OwlapiAdapter { boolean isConsistent(URI context) { startTransactionIfNotActive(); return ontologySnapshot.getReasoner().isConsistent(); } OwlapiAdapter(Connector connector); void addTransactionalChanges(Collection<OWLOntologyChange> changes); ListHandler<SimpleListDescriptor, SimpleListValueDescriptor> getSimpleListHandler(); ListHandler<ReferencedListDescriptor, ReferencedListValueDescriptor> getReferencedListHandler(); OwlapiStatement createStatement(OwlapiConnection connection); OwlapiPreparedStatement prepareStatement(String statement, OwlapiConnection connection); T unwrap(Class<T> cls);  }
@Test void testIsConsistentWithCorrectContext() { final URI uri = getOntologyUri(); when(reasonerMock.isConsistent()).thenReturn(Boolean.TRUE); assertTrue(adapter.isConsistent(uri)); verify(reasonerMock).isConsistent(); }
@Test void isConsistentIgnoresContextInfo() { when(reasonerMock.isConsistent()).thenReturn(Boolean.TRUE); final URI ctx = URI.create("http: assertTrue(adapter.isConsistent(ctx)); verify(reasonerMock).isConsistent(); }