TDBStorage extends Storage { @Override void writeChanges() throws JenaDriverException { try { TDB.sync(dataset); } catch (RuntimeException e) { throw new JenaDriverException("Unable to synchronize TDB storage with file system.", e); } } TDBStorage(DriverConfiguration configuration);   }
@Test public void writeChangesSynchronizesDatasetToStorage() throws Exception { final File storageDir = initTDBStorage(); storage.begin(ReadWrite.WRITE); generateTestData(storage.getDataset()); storage.commit(); storage.writeChanges(); final Dataset result = TDBFactory.createDataset(storageDir.getAbsolutePath()); result.begin(ReadWrite.READ); assertTrue(result.getDefaultModel().contains(RESOURCE, RDF.type, createResource(TYPE_ONE))); result.abort(); result.close(); }