@Override protected PyramidIO create() throws ConfigurationException { try { String rootPath = getPropertyValue(ROOT_PATH); return new SQLitePyramidIO(rootPath); } catch (ClassNotFoundException | SQLException e) { throw new ConfigurationException("Error creating SQLite pyramid IO", e); } } }
private void setDBPath (String dbPath) { if (!objectsEqual(_dbPath, dbPath)) { _dbPath = dbPath; SQLitePyramidIO oldIO = _io; try { _io = new SQLitePyramidIO(_dbPath); } catch (Exception e) { _io = null; if (null == oldIO) return; } firePropertyChange(BinVisualizer.PYRAMID_IO, oldIO, _io); } }
@Before public void setUp() throws Exception { try { sqlitePyramidIO = new SQLitePyramidIO("test.db"); } catch (Exception e) { fail(e.getMessage()); } }