Ejemplo n.º 1
0
 @After
 public void tearDown() throws Exception {
   clearHistory();
   if (setupDataSource) {
     if (emf != null) {
       emf.close();
       emf = null;
     }
     if (ds != null) {
       ds.close();
       ds = null;
     }
   }
   disposeRuntimeManager();
 }
Ejemplo n.º 2
0
 @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;
   }
 }