@Override public void tearDown() throws Exception { if (store != null) { try { store.close(); } catch (Throwable e) { System.out.println("tearDown: " + e); } store = null; } super.tearDown(); }
/** The store must be closed before closing the environment. */ @After public void tearDown() throws Exception { try { if (rawStore != null) { rawStore.close(); } } catch (Throwable e) { System.out.println("During tearDown: " + e); } try { if (store != null) { store.close(); } } catch (Throwable e) { System.out.println("During tearDown: " + e); } store = null; rawStore = null; super.tearDown(); }