org.testng.annotations.AfterClass Java Examples
The following examples show how to use
org.testng.annotations.AfterClass.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebSocketInboundTestCase.java From micro-integrator with Apache License 2.0 | 6 votes |
@AfterClass(alwaysRun = true) public void destroy() throws Exception { try { if (webSocketTestClient != null) { webSocketTestClient.shutDown(); } } catch (InterruptedException e) { log.error("Error while closing the Web Socket Client"); //ignore } try { super.cleanup(); } finally { if (webSocketServer != null) { webSocketServer.stop(); } } }
Example #2
Source File: ConcurrencyAndRequestThrottlingTestRequest.java From micro-integrator with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void destroy() throws Exception { concurrencyAndRequestThrottleTestClients = null; list = null; clients = null; clientsDone = null; requestThrottledClients = null; super.cleanup(); }
Example #3
Source File: TestSqlStageExecution.java From presto with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void tearDown() { executor.shutdownNow(); executor = null; scheduledExecutor.shutdownNow(); scheduledExecutor = null; }
Example #4
Source File: CachableDurationTestCase.java From micro-integrator with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void unDeployService() throws Exception { registryManager.restoreOriginalResources(); // restore to original registry.xml file String sourceFile = getESBResourceLocation() + File.separator + "synapseconfig" + File.separator + "registry" + File.separator + "caching" + File.separator + "registry_original.xml"; String registryConfig = FileUtils.readFileToString(new File(sourceFile)); Utils.deploySynapseConfiguration(AXIOMUtil.stringToOM(registryConfig), "registry", "", true); carbonLogReader.stop(); }
Example #5
Source File: StartupTests.java From micro-integrator with Apache License 2.0 | 5 votes |
@AfterClass public void clean() throws Exception { readerManager.stopAll(); if (node3 != null) { node3.stopServer(); } }
Example #6
Source File: MessageProcessorPersistenceTestCase.java From micro-integrator with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void cleanup() throws Exception { super.cleanup(); serverConfigurationManager = null; synapseConfigAdminClient = null; }
Example #7
Source File: MessageStoreMessageCleaningTestCase.java From micro-integrator with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void close() throws Exception { clear(); cleanup(); messageStoreAdminClient = null; context = null; serverConfigurationManager = null; }
Example #8
Source File: TestOracleTypes.java From presto with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public final void destroy() { if (oracleServer != null) { oracleServer.close(); } }
Example #9
Source File: SecurityTransformationProxyForPolicy7BackEndTestCase.java From micro-integrator with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void destroy() throws Exception { ResourceAdminServiceClient resourceAdmin = new ResourceAdminServiceClient(contextUrls.getBackEndUrl(), sessionCookie); try { resourceAdmin.deleteResource("/_system/config/securityTransform"); } finally { super.cleanup(); } }
Example #10
Source File: JDBCMessageProcessorTestCase.java From micro-integrator with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void destroy() throws Exception { try { mySqlDatabaseManager.executeUpdate("DROP DATABASE WSO2SampleDBForAutomation"); } finally { mySqlDatabaseManager.disconnect(); } super.cleanup(); super.init(); loadSampleESBConfiguration(0); serverConfigurationManager.removeFromComponentLib(MYSQL_JAR); serverConfigurationManager.restartGracefully(); }
Example #11
Source File: ESBJAVA4630RabbitMQMultipleListenerTestCase.java From micro-integrator with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void end() throws Exception { super.cleanup(); try { rabbitMQServer.stop(); sender = null; configurationManagerAxis2.restoreToLastConfiguration(); } catch (AutomationUtilException e) { log.info("Error cleaning up - " + e.getMessage(), e); } }
Example #12
Source File: SecurityTransformationProxyForPolicy2BackEndTestCase.java From micro-integrator with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void destroy() throws Exception { ResourceAdminServiceClient resourceAdmin = new ResourceAdminServiceClient(contextUrls.getBackEndUrl(), sessionCookie); try { resourceAdmin.deleteResource("/_system/config/securityTransform"); } finally { super.cleanup(); } }
Example #13
Source File: TestJsonOperators.java From presto with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void destroy() { if (runner != null) { runner.close(); runner = null; } }
Example #14
Source File: MessageProcessorMediaTypeTestCase.java From micro-integrator with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void destroy() throws RemoteException { if (isMessageProcessorExist) { messageProcessorClient.deleteMessageProcessor(MESSAGE_PROCESSOR_NAME); } if (isMessageStoreExist) { messageStoreAdminClient.deleteMessageStore(MESSAGE_STORE_NAME); } }
Example #15
Source File: TestPartitionedOutputOperator.java From presto with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void tearDown() { executor.shutdownNow(); executor = null; scheduledExecutor.shutdownNow(); scheduledExecutor = null; }
Example #16
Source File: POXOverServletTransportTestCase.java From micro-integrator with Apache License 2.0 | 5 votes |
@AfterClass(alwaysRun = true) public void cleanUp() throws Exception { try { httpServer.stop(); } catch (IOException e) { log.warn("Error while shutting down the HTTP server", e); } super.cleanup(); }
Example #17
Source File: ESBJAVA4907SwaggerGenerationTestCase.java From micro-integrator with Apache License 2.0 | 4 votes |
@AfterClass(alwaysRun = true) public void destroy() throws Exception { super.cleanup(); }
Example #18
Source File: CutCopyPasteNGTest.java From constellation with Apache License 2.0 | 4 votes |
@AfterClass public static void tearDownClass() throws Exception { }
Example #19
Source File: TestQueryStateInfoResource.java From presto with Apache License 2.0 | 4 votes |
@AfterClass(alwaysRun = true) public void tearDown() { closeQuietly(server, client); }
Example #20
Source File: SetHeaderActionTestCase.java From micro-integrator with Apache License 2.0 | 4 votes |
@AfterClass(alwaysRun = true) private void destroy() throws Exception { super.cleanup(); }
Example #21
Source File: LogMediatorAfterSendMediatorTestCase.java From micro-integrator with Apache License 2.0 | 4 votes |
@AfterClass(alwaysRun = true) private void destroy() throws Exception { super.cleanup(); }
Example #22
Source File: EnrichIntegrationBodyToSiblingOfBodyTestCase.java From micro-integrator with Apache License 2.0 | 4 votes |
@AfterClass(alwaysRun = true) public void close() throws Exception { super.cleanup(); }
Example #23
Source File: Sample441TestCase.java From micro-integrator with Apache License 2.0 | 4 votes |
@AfterClass(alwaysRun = true) public void destroy() throws Exception { super.cleanup(); }
Example #24
Source File: TestRaptorFileBasedSecurity.java From presto with Apache License 2.0 | 4 votes |
@AfterClass(alwaysRun = true) public void tearDown() { queryRunner.close(); queryRunner = null; }
Example #25
Source File: BasePlanTest.java From presto with Apache License 2.0 | 4 votes |
@AfterClass(alwaysRun = true) public final void destroyPlanTest() { closeAllRuntimeException(queryRunner); queryRunner = null; }
Example #26
Source File: MergeTransactionsNGTest.java From constellation with Apache License 2.0 | 4 votes |
@AfterClass public static void tearDownClass() { }
Example #27
Source File: HandlerTest.java From micro-integrator with Apache License 2.0 | 4 votes |
@AfterClass(groups = "wso2.esb", alwaysRun = true) public void close() throws Exception { carbonLogReader.stop(); }
Example #28
Source File: TestPlannerWarnings.java From presto with Apache License 2.0 | 4 votes |
@AfterClass(alwaysRun = true) public void tearDown() { queryRunner.close(); }
Example #29
Source File: TestIcebergSystemTables.java From presto with Apache License 2.0 | 4 votes |
@AfterClass(alwaysRun = true) public void tearDown() { assertUpdate("DROP TABLE IF EXISTS test_schema.test_table"); assertUpdate("DROP SCHEMA IF EXISTS test_schema"); }
Example #30
Source File: CallMediatorProxyWithNamedSeqCase.java From micro-integrator with Apache License 2.0 | 4 votes |
@AfterClass(alwaysRun = true) public void destroy() throws Exception { super.cleanup(); }