org.junit.jupiter.api.AfterAll Java Examples
The following examples show how to use
org.junit.jupiter.api.AfterAll.
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: ValueTransferWithAzureAcceptanceTest.java From ethsigner with Apache License 2.0 | 5 votes |
@AfterAll static synchronized void tearDownBase() { try { if (ethNode != null) { ethNode.shutdown(); ethNode = null; } } finally { if (ethSigner != null) { ethSigner.shutdown(); ethSigner = null; } } }
Example #2
Source File: ExceptionTranslationIT.java From sdn-rx with Apache License 2.0 | 5 votes |
@AfterAll static void dropConstraints(@Autowired Driver driver) { try (Session session = driver.session()) { session.run("DROP CONSTRAINT ON (person:SimplePerson) ASSERT person.name IS UNIQUE").consume(); } }
Example #3
Source File: SystemStreamTests.java From vividus with Apache License 2.0 | 5 votes |
@AfterClass @AfterAll public static void afterBase() throws IOException { System.setOut(DEFAULT_OUT_STREAM); out.close(); System.setErr(DEFAULT_ERR_STREAM); err.close(); }
Example #4
Source File: DetectorFinderTest.java From synopsys-detect with Apache License 2.0 | 5 votes |
@AfterAll public static void cleanup() { try { FileUtils.deleteDirectory(initialDirectoryPath.toFile()); } catch (final IOException e) { // ignore } }
Example #5
Source File: RepositoryWithADifferentDatabaseIT.java From sdn-rx with Apache License 2.0 | 5 votes |
@AfterAll static void dropTestDatabase() { try (Session session = neo4jConnectionSupport.driverInstance.session(SessionConfig.forDatabase("system"))) { session.run("DROP DATABASE " + TEST_DATABASE_NAME).consume(); } }
Example #6
Source File: ReactiveExceptionTranslationIT.java From sdn-rx with Apache License 2.0 | 5 votes |
@AfterAll static void dropConstraints(@Autowired Driver driver) { Flux.using(driver::rxSession, session -> session.run("DROP CONSTRAINT ON (person:SimplePerson) ASSERT person.name IS UNIQUE").consume(), RxSession::close ).then().as(StepVerifier::create).verifyComplete(); }
Example #7
Source File: CamelDevModeTest.java From camel-quarkus with Apache License 2.0 | 5 votes |
@AfterAll public static void cleanUp() throws IOException { Files.walk(BASE) .sorted(Comparator.reverseOrder()) .map(Path::toFile) .forEach(File::delete); }
Example #8
Source File: BaseIT.java From apicurio-registry with Apache License 2.0 | 5 votes |
@AfterAll static void afterAll(TestInfo info) throws Exception { if (!TestUtils.isExternalRegistry()) { registry.stop(); Thread.sleep(3000); //noinspection OptionalGetWithoutIsPresent storeRegistryLog(info.getTestClass().get().getCanonicalName()); } }
Example #9
Source File: ServerRecordTest.java From incubator-tuweni with Apache License 2.0 | 5 votes |
@AfterAll static void cleanupClients() { caClient.close(); fooClient.close(); barClient.close(); foobarClient.close(); }
Example #10
Source File: PackageBuilderConfigurationTest.java From kogito-runtimes with Apache License 2.0 | 5 votes |
@AfterAll public static void restorePropertyValues() { if (droolsDialectJavaCompilerOrig != null) { System.setProperty(JavaDialectConfiguration.JAVA_COMPILER_PROPERTY, droolsDialectJavaCompilerOrig); } if (droolsDialectDefaultOrig != null) { System.setProperty(DefaultDialectOption.PROPERTY_NAME, droolsDialectDefaultOrig); } }
Example #11
Source File: ClientCaOrTofuTest.java From incubator-tuweni with Apache License 2.0 | 5 votes |
@AfterAll static void stopServers() { caValidServer.close(); fooServer.close(); foobarServer.close(); System.clearProperty("javax.net.ssl.trustStore"); System.clearProperty("javax.net.ssl.trustStorePassword"); }
Example #12
Source File: ClientWhitelistTest.java From incubator-tuweni with Apache License 2.0 | 5 votes |
@AfterAll static void stopServers() { caValidServer.close(); fooServer.close(); barServer.close(); System.clearProperty("javax.net.ssl.trustStore"); System.clearProperty("javax.net.ssl.trustStorePassword"); }
Example #13
Source File: ClientCaOrWhitelistTest.java From incubator-tuweni with Apache License 2.0 | 5 votes |
@AfterAll static void stopServers() { caValidServer.close(); fooServer.close(); barServer.close(); System.clearProperty("javax.net.ssl.trustStore"); System.clearProperty("javax.net.ssl.trustStorePassword"); }
Example #14
Source File: TestAlias.java From jbang with MIT License | 5 votes |
@AfterAll static void cleanup() throws IOException { if (jbangTempDir != null) { Files .walk(jbangTempDir) .sorted(Comparator.reverseOrder()) .map(Path::toFile) .forEach(File::delete); } }
Example #15
Source File: ClientTofuTest.java From incubator-tuweni with Apache License 2.0 | 5 votes |
@AfterAll static void stopServers() { caValidServer.close(); fooServer.close(); foobarServer.close(); System.clearProperty("javax.net.ssl.trustStore"); System.clearProperty("javax.net.ssl.trustStorePassword"); }
Example #16
Source File: DataPathFeatureFlagAcceptanceTest.java From ethsigner with Apache License 2.0 | 5 votes |
@AfterAll public static synchronized void tearDownBase() { if (ethNode != null) { ethNode.shutdown(); ethNode = null; } if (ethSigner != null) { ethSigner.shutdown(); ethSigner = null; } }
Example #17
Source File: MultiKeyHashicorpTransactionSignerAcceptanceTest.java From ethsigner with Apache License 2.0 | 5 votes |
@AfterAll static void tearDown() { if (hashicorpNode != null) { hashicorpNode.shutdown(); hashicorpNode = null; } }
Example #18
Source File: MultiKeyTransactionSigningAcceptanceTestBase.java From ethsigner with Apache License 2.0 | 5 votes |
@AfterAll public static synchronized void tearDownBase() { if (ethNode != null) { ethNode.shutdown(); ethNode = null; } if (ethSigner != null) { ethSigner.shutdown(); ethSigner = null; } }
Example #19
Source File: UpCheckAcceptanceTest.java From ethsigner with Apache License 2.0 | 5 votes |
@AfterAll static synchronized void tearDownBase() { if (ethSigner != null) { ethSigner.shutdown(); ethSigner = null; } }
Example #20
Source File: RenamingServiceTest.java From MergeProcessor with Apache License 2.0 | 5 votes |
@AfterAll public static void closeAfterAll() { try { connection.close(); } catch (SQLException e) { LogUtil.throwing(e); } }
Example #21
Source File: MultiKeySigningAcceptanceTest.java From ethsigner with Apache License 2.0 | 5 votes |
@AfterAll static void tearDown() { if (hashicorpNode != null) { hashicorpNode.shutdown(); hashicorpNode = null; } }
Example #22
Source File: AcceptanceTestBase.java From ethsigner with Apache License 2.0 | 5 votes |
@AfterAll public static synchronized void tearDownBase() { if (ethNode != null) { ethNode.shutdown(); ethNode = null; } if (ethSigner != null) { ethSigner.shutdown(); ethSigner = null; } }
Example #23
Source File: IntegrationTestBase.java From ethsigner with Apache License 2.0 | 5 votes |
@AfterAll public static void teardown() { clientAndServer.stop(); vertx.close(); clientAndServer = null; runner = null; }
Example #24
Source File: ClientCaOrRecordTest.java From incubator-tuweni with Apache License 2.0 | 5 votes |
@AfterAll static void stopServers() { caValidServer.close(); fooServer.close(); barServer.close(); foobarServer.close(); System.clearProperty("javax.net.ssl.trustStore"); System.clearProperty("javax.net.ssl.trustStorePassword"); }
Example #25
Source File: ServerCaOrRecordTest.java From incubator-tuweni with Apache License 2.0 | 5 votes |
@AfterAll static void cleanupClients() { caClient.close(); fooClient.close(); barClient.close(); foobarClient.close(); }
Example #26
Source File: DebeziumPostgresTest.java From camel-quarkus with Apache License 2.0 | 4 votes |
@AfterAll public static void cleanUp() throws SQLException { if (connection != null) { connection.close(); } }
Example #27
Source File: SvnLinkedArtifactTest.java From MergeProcessor with Apache License 2.0 | 4 votes |
@AfterAll public static void closeSvnClient() { client.close(); }
Example #28
Source File: ShadowTest.java From shadow-automation-selenium with Apache License 2.0 | 4 votes |
@AfterAll static void tearDownAll() { driver.close(); }
Example #29
Source File: Log4j2EcsLayoutTest.java From ecs-logging-java with Apache License 2.0 | 4 votes |
@AfterAll static void cleanupClass() { ConfigurationFactory.removeConfigurationFactory(configFactory); }
Example #30
Source File: TestGenerateESExperiments.java From quaerite with Apache License 2.0 | 4 votes |
@AfterAll public static void tearDown() throws Exception { Files.delete(JSON); Files.delete(EXPERIMENTS); }