@AfterMethod public void disposeDriver() throws Throwable { SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { frame.setVisible(false); frame.dispose(); if (window != null) { window.setVisible(false); window.dispose(); window = null; } } }); if (driver != null) { driver.quit(); } }
@AfterMethod public void tearDown(){ File compressedFile = new File(transformation.getTransformedApplicationLocation().getAbsolutePath() + ".zip"); if(compressedFile.exists()) { boolean deleted = compressedFile.delete(); logger.info("CompressionHandlerTest:tearDown: Removed Compressed File :" + deleted); } }
@AfterMethod public void disposeDriver() throws Throwable { SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { frame.setVisible(false); frame.dispose(); } }); }
@AfterMethod public void disposeDriver() throws Throwable { SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { frame.setVisible(false); frame.dispose(); } }); JavaElementFactory.reset(); }
@AfterMethod public void tearDown() { // 删除mainStem节点 String path = StagePathUtils.getPipeline(pipelineId) + "/" + ArbitrateConstants.NODE_MAINSTEM; zookeeper.delete(path); nodeEvent.destory(one.getId()); // 关闭pipeline pipelineEvent.destory(channelId, pipelineId); // channelEvent.destory(channelId); }
@AfterMethod public void tearDown() { nodeEvent.destory(node1.getId()); nodeEvent.destory(node2.getId()); nodeEvent.destory(node3.getId()); nodeEvent.destory(node4.getId()); }
@AfterMethod public void afterMethod() { String fromBefore = (String) Reporter.getCurrentTestResult().getAttribute(FROM_BEFORE); String fromMethod = (String) Reporter.getCurrentTestResult().getAttribute(FROM_METHOD); assertEquals(fromBefore, FROM_BEFORE, "Incorrect [fromBefore] value"); assertEquals(fromMethod, FROM_METHOD, "Incorrect [fromMethod] value"); }
@AfterMethod public void disposeDriver() throws Throwable { SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { frame.setVisible(false); frame.dispose(); } }); EventQueueWait.waitTillInvisibled(frame); }
@AfterMethod public void cleanupResources() throws SQLException { TEST_NUMBER++; //todo issue #232 fix increment topic partition name for tests on multi jvm ALL_RESOURCES.cleanUpClusters(); DB_RESOURCE.executeResource(JDBCUtil.DROP_TABLE_SQL_RESOURCE); }
@AfterMethod public void testCleanup() { for (BaseSubject subject : this.privilegeManagementService.getSubjects()) { this.privilegeManagementService.deleteSubject(subject.getSubjectIdentifier()); } for (BaseResource resource : this.privilegeManagementService.getResources()) { this.privilegeManagementService.deleteResource(resource.getResourceIdentifier()); } }
@AfterMethod public void disposeDriver() throws Throwable { SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { frame.setVisible(false); frame.dispose(); } }); if (driver != null) { driver.quit(); } }
@AfterMethod public void printCaseError(ITestResult result) { if (result.getStatus() == ITestResult.FAILURE) { Hierarchy hs = (Hierarchy)result.getParameters()[0]; System.out.println("Separate compilation case " + hs); printCaseDetails(hs); } }
@AfterMethod public void stopTestApp() throws Exception { testApp.getOutputStream().write(1); testApp.getOutputStream().flush(); testApp.waitFor(); testApp = null; }
@AfterMethod public void setUpAfterMethod() throws RMIException, Exception { final Map<String, String> map = new HashMap<>(); map.put(MonarchUtils.LOCATOR_PORT, testBase.getLocatorPort()); map.put(MonarchUtils.REGION, regionName); MonarchUtils.destroyTable(regionName, map, false, true); }
@AfterMethod public void afterMethod(Method method) { if ("testMethod".equals(method.getName())) { afterResult = Reporter.getCurrentTestResult(); fromAfter = (String) afterResult.getAttribute(ATTRIBUTE); } }
@AfterMethod(alwaysRun = true) public void cleanupOAuth() throws IOException { if( oauthUri != null ) { deleteResource(oauthUri, token); } }
@AfterMethod public void disposeDialog() throws Throwable { SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { frame.dispose(); } }); EventQueueWait.empty(); if (driver != null) { driver.quit(); } }
@AfterMethod public void tearDown() { nodeEvent.destory(nid); pipelineEvent.destory(channelId, pipelineId); channelEvent.destory(channelId); }
@AfterMethod public void disposeDriver() throws InterruptedException, InvocationTargetException { SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { frame.setVisible(false); frame.dispose(); } }); if (driver != null) { driver.quit(); } }
@AfterMethod public void disposeDriver() throws Throwable { SwingUtilities.invokeAndWait(new Runnable() { @Override public void run() { frame.setVisible(false); frame.dispose(); } }); if (driver != null) { driver.quit(); } EventQueueWait.waitTillInvisibled(frame); }