Refine search
@AfterMethod public void tearDown() { executor.shutdownNow(); scheduledExecutor.shutdownNow(); }
@AfterMethod public void tearDown() throws Exception { // stop bookkeeper service stopBKCluster(); // stop zookeeper service stopZKCluster(); executor.shutdown(); }
@AfterMethod public void tearDown() { remoteTaskExecutor.shutdown(); remoteTaskScheduledExecutor.shutdown(); finalizerService.destroy(); }
@AfterMethod public void tearDown() throws InterruptedException { _serialExecutor = null; _rejectionHandler = null; _executorService.shutdownNow(); _executorService.awaitTermination(1, TimeUnit.SECONDS); _executorService = null; }
@AfterMethod(groups = "long", alwaysRun = true) public void shutdown() throws Exception { executorService.shutdown(); try { boolean shutdown = executorService.awaitTermination(30, TimeUnit.SECONDS); if (!shutdown) fail("executor ran for longer than expected"); } catch (InterruptedException e) { fail("Interrupted while waiting for executor to shutdown"); } finally { executorService = null; System.gc(); } }
@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { executor1.shutdownNow(); executor2.shutdownNow(); }
@AfterMethod public void tearDown() { memoryPool = null; executor.shutdownNow(); scheduledExecutor.shutdownNow(); }
@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { deleteRecursively(spillPath.toPath(), ALLOW_INSECURE); }
/** * Delegates to the configured {@link TestContextManager} to * {@linkplain TestContextManager#afterTestMethod(Object, Method, Throwable) * post-process} the test method after the actual test has executed. * * @param testMethod the test method which has just been executed on the * test instance * @throws Exception allows all exceptions to propagate */ @AfterMethod(alwaysRun = true) protected void springTestContextAfterTestMethod(Method testMethod) throws Exception { try { this.testContextManager.afterTestMethod(this, testMethod, this.testException); } finally { this.testException = null; } }
false, false, false, true, bs.alwaysRun(), bs.dependsOnGroups(), bs.dependsOnMethods(), bs.description(), bs.enabled(), bs.groups(), bs.inheritGroups(), null, false, bs.lastTimeOnly(), bs.timeOut());
@AfterMethod public void afterMethod() { _executor.shutdown(); }
@AfterMethod public void tearDown() { remoteTaskExecutor.shutdown(); remoteTaskScheduledExecutor.shutdown(); finalizerService.destroy(); }
@AfterMethod public void tearDown() throws Exception { _client.shutdown(10, SECONDS); _daemon1.stop(); _daemon2.stop(); if(_daemon3 != null && _daemon3.isRunning()) { _daemon3.stop(); } _tomcat1.stop(); _tomcat2.stop(); _httpClient.getConnectionManager().shutdown(); _executor.shutdownNow(); }
@AfterMethod public void tearDown() throws Exception { _scheduler.shutdownNow(); _scheduler = null; }
@AfterMethod public void tearDown() throws Exception { executor.shutdown(); deleteRecursively(spillPath.toPath(), ALLOW_INSECURE); }
@AfterMethod(alwaysRun = true) public void synchronizePersistenceContext() { em.flush(); }
false, true, bs.alwaysRun(), bs.dependsOnGroups(), bs.dependsOnMethods(), bs.description(), bs.enabled(), bs.groups(), bs.inheritGroups(), false, bs.lastTimeOnly(), bs.timeOut(), bs.onlyForGroups());
@AfterMethod public void tearDown() { executor.shutdownNow(); scheduledExecutor.shutdownNow(); }
@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { coreExecutor.shutdown(); }
@AfterMethod public void tearDown() { if (pooledExecutorService != null) { pooledExecutorService.shutdownNow(); } }