@After public void tearDown() throws Exception { clearHistory(); if (setupDataSource) { if (emf != null) { emf.close(); emf = null; } if (ds != null) { ds.close(); ds = null; } } disposeRuntimeManager(); }
@After public void tearDown() throws Exception { clearHistory(); if (setupDataSource) { if (emf != null) { emf.close(); emf = null; } if (ds != null) { ds.close(); ds = null; } } if (!activeEngines.isEmpty()) { for (RuntimeEngine engine : activeEngines) { manager.disposeRuntimeEngine(engine); } } if (manager != null) { manager.close(); manager = null; } }