JenaDriver implements Closeable, ConnectionListener { @Override public boolean isOpen() { return open; } JenaDriver(OntologyStorageProperties storageProperties, Map<String, String> properties); @Override void connectionClosed(JenaConnection connection); @Override synchronized void close(); @Override boolean isOpen();  }
@Test public void initCreatesReadCommittedConnectorFactoryWhenConfigured() throws Exception { this.driver = new JenaDriver(storageProps, properties); assertNotNull(driver); assertTrue(driver.isOpen()); assertTrue(getConnectorFactory() instanceof ReadCommittedConnectorFactory); }
@Test public void initCreatesSnapshotConnectorFactoryWhenConfigured() throws Exception { properties.put(JenaOntoDriverProperties.JENA_ISOLATION_STRATEGY, JenaOntoDriverProperties.SNAPSHOT); this.driver = new JenaDriver(storageProps, properties); assertNotNull(driver); assertTrue(driver.isOpen()); assertTrue(getConnectorFactory() instanceof SnapshotConnectorFactory); }
@Test public void initCreatesInferenceConnectorFactoryWhenReasonerFactoryIsConfigured() throws Exception { properties.put(OntoDriverProperties.REASONER_FACTORY_CLASS, RDFSRuleReasonerFactory.class.getName()); this.driver = new JenaDriver(storageProps, properties); assertNotNull(driver); assertTrue(driver.isOpen()); assertTrue(getConnectorFactory() instanceof InferenceConnectorFactory); }