@Override protected void tearDown() throws Exception { if (exec != null) { exec.shutdown(); } super.tearDown(); }
@Override public void tearDown() throws Exception { super.tearDown(); LocalCache.logger.removeHandler(logHandler); }
@Override protected void tearDown() throws Exception { super.tearDown(); }
@Override public void tearDown() throws Exception { super.tearDown(); // TODO(cpovirk): run tests in other thread instead of messing with main thread interrupt status currentThread().interrupted(); LocalCache.logger.removeHandler(logHandler); }
protected void tearDown() throws Exception { super.tearDown(); }
@Override protected void tearDown() throws Exception { super.tearDown(); }
/** * Runs the bare test sequence. * * @throws Throwable if any exception is thrown */ public void runBare() throws Throwable { Throwable exception = null; setUp(); try { runTest(); } catch (Throwable running) { exception = running; } finally { try { tearDown(); } catch (Throwable tearingDown) { if (exception == null) exception = tearingDown; } } if (exception != null) throw exception; }
/** * Tear Down. */ @Override protected void tearDown() throws Exception { super.tearDown(); }
/** * Runs the bare test sequence. * * @throws Throwable if any exception is thrown */ public void runBare() throws Throwable { Throwable exception = null; setUp(); try { runTest(); } catch (Throwable running) { exception = running; } finally { try { tearDown(); } catch (Throwable tearingDown) { if (exception == null) exception = tearingDown; } } if (exception != null) throw exception; }
/** * @see junit.framework.TestCase#tearDown() */ @Override protected void tearDown() throws Exception { super.tearDown(); }
/** * Tear down * @throws Exception */ @Override protected void tearDown() throws Exception { super.tearDown(); validator = null; }
@Override public void tearDown() throws Exception { /* * Clear interrupt for future tests. * * (Ideally we would perform interrupts only in threads that we create, but * it's hard to imagine that anything will break in practice.) */ clearInterrupt(); aggregateFutureLogger.removeHandler(aggregateFutureLogHandler); super.tearDown(); }
@Override public void tearDown() throws Exception { super.tearDown(); // TODO(cpovirk): run tests in other thread instead of messing with main thread interrupt status Thread.interrupted(); logger.removeHandler(logHandler); }
@Override protected void tearDown() throws Exception { try { if (localfs) { if (this.fs.exists(testDir)) { this.fs.delete(testDir, true); } } } catch (Exception e) { LOG.error(HBaseMarkers.FATAL, "error during tear down", e); } super.tearDown(); }
@Override protected void tearDown() throws Exception { // Reset any timers processEngineConfiguration.getClock().reset(); // Reset any mocks if (mockSupport != null) { mockSupport.reset(); } super.tearDown(); }
@Override protected void tearDown() throws Exception { super.tearDown(); FileUtils.deleteDir(workDir); }
@Override protected void tearDown() throws Exception { SystemTime.reset(); super.tearDown(); }
protected void tearDown() throws Exception { super.tearDown(); // Stops the auto fail thread only after performing any clean up stopAutoFailThread(); }
@Override protected void tearDown() throws Exception { try { super.tearDown(); client.close(); } catch (Throwable e) { System.err.println("Unable to close metastore"); System.err.println(StringUtils.stringifyException(e)); throw new Exception(e); } }
@Override protected void tearDown() throws Exception { try { super.tearDown(); client.dropTable(dbName, tblName); client.dropDatabase(dbName); client.close(); } catch (Throwable e) { LOG.error("Unable to close metastore", e); throw new Exception(e); } }