/** * 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; } }
@AfterMethod(alwaysRun = true) public void synchronizePersistenceContext() { em.flush(); }
@AfterMethod public void tearDown() { executor.shutdownNow(); scheduledExecutor.shutdownNow(); }
@AfterMethod public void tearDown() { executor.shutdownNow(); scheduledExecutor.shutdownNow(); }
@AfterMethod public void tearDown() { executor.shutdownNow(); scheduledExecutor.shutdownNow(); }
@AfterMethod public void tearDown() { executor.shutdownNow(); scheduledExecutor.shutdownNow(); }
@AfterMethod public void tearDown() { executor.shutdownNow(); scheduledExecutor.shutdownNow(); }
@AfterMethod public void tearDown() { executor.shutdownNow(); scheduledExecutor.shutdownNow(); }
@AfterMethod public void tearDown() { memoryPool = null; executor.shutdownNow(); scheduledExecutor.shutdownNow(); }
@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { deleteRecursively(spillPath.toPath(), ALLOW_INSECURE); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod(alwaysRun = true) public void tearDown() { if (localQueryRunner != null) { localQueryRunner.close(); localQueryRunner = null; } }
@AfterMethod(alwaysRun = true) public void tearDown() { closeQuietly(connection); }
@AfterMethod(alwaysRun = true) public void tearDown() { queryRunner.close(); queryRunner = null; }
@AfterMethod public void teardown() throws IOException { server.close(); }
@AfterMethod public void tearDown(Method method) { assertTrue(Futures.allAsList(futures).isDone(), "Expression test futures are not complete"); log.info("FINISHED %s in %s verified %s expressions", method.getName(), Duration.nanosSince(start), futures.size()); }
@AfterMethod public void teardown() { closeQuietly(statement); closeQuietly(connection); }
@AfterMethod void tearDown() throws Exception { numTearDownCalls++; if (inTransaction()) { numTearDownCallsInTransaction++; } assertNumRowsInPersonTable((inTransaction() ? 4 : 1), "after a test method"); }
@AfterMethod void tearDown() { numTearDownCalls++; if (inTransaction()) { numTearDownCallsInTransaction++; } assertNumRowsInPersonTable((inTransaction() ? 4 : 1), "after a test method"); }