Java Code Examples for org.junit.jupiter.api.AfterAll

The following examples show how to use org.junit.jupiter.api.AfterAll. These examples are extracted from open source projects. 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 Project: incubator-tuweni   Source File: ServerRecordTest.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
static void cleanupClients() {
  caClient.close();
  fooClient.close();
  barClient.close();
  foobarClient.close();
}
 
Example 2
Source Project: incubator-tuweni   Source File: ClientTofuTest.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
static void stopServers() {
  caValidServer.close();
  fooServer.close();
  foobarServer.close();
  System.clearProperty("javax.net.ssl.trustStore");
  System.clearProperty("javax.net.ssl.trustStorePassword");
}
 
Example 3
Source Project: incubator-tuweni   Source File: ClientCaOrTofuTest.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
static void stopServers() {
  caValidServer.close();
  fooServer.close();
  foobarServer.close();
  System.clearProperty("javax.net.ssl.trustStore");
  System.clearProperty("javax.net.ssl.trustStorePassword");
}
 
Example 4
Source Project: incubator-tuweni   Source File: ClientWhitelistTest.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
static void stopServers() {
  caValidServer.close();
  fooServer.close();
  barServer.close();
  System.clearProperty("javax.net.ssl.trustStore");
  System.clearProperty("javax.net.ssl.trustStorePassword");
}
 
Example 5
Source Project: incubator-tuweni   Source File: ClientCaOrWhitelistTest.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
static void stopServers() {
  caValidServer.close();
  fooServer.close();
  barServer.close();
  System.clearProperty("javax.net.ssl.trustStore");
  System.clearProperty("javax.net.ssl.trustStorePassword");
}
 
Example 6
Source Project: incubator-tuweni   Source File: ServerCaOrRecordTest.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
static void cleanupClients() {
  caClient.close();
  fooClient.close();
  barClient.close();
  foobarClient.close();
}
 
Example 7
Source Project: incubator-tuweni   Source File: ClientCaOrRecordTest.java    License: Apache License 2.0 5 votes vote down vote up
@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 8
Source Project: ethsigner   Source File: IntegrationTestBase.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
public static void teardown() {
  clientAndServer.stop();
  vertx.close();
  clientAndServer = null;
  runner = null;
}
 
Example 9
Source Project: ethsigner   Source File: AcceptanceTestBase.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
public static synchronized void tearDownBase() {
  if (ethNode != null) {
    ethNode.shutdown();
    ethNode = null;
  }

  if (ethSigner != null) {
    ethSigner.shutdown();
    ethSigner = null;
  }
}
 
Example 10
Source Project: ethsigner   Source File: MultiKeySigningAcceptanceTest.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
static void tearDown() {
  if (hashicorpNode != null) {
    hashicorpNode.shutdown();
    hashicorpNode = null;
  }
}
 
Example 11
@AfterAll
public static synchronized void tearDownBase() {
  if (ethNode != null) {
    ethNode.shutdown();
    ethNode = null;
  }

  if (ethSigner != null) {
    ethSigner.shutdown();
    ethSigner = null;
  }
}
 
Example 12
@AfterAll
static void tearDown() {
  if (hashicorpNode != null) {
    hashicorpNode.shutdown();
    hashicorpNode = null;
  }
}
 
Example 13
@AfterAll
public static synchronized void tearDownBase() {
  if (ethNode != null) {
    ethNode.shutdown();
    ethNode = null;
  }

  if (ethSigner != null) {
    ethSigner.shutdown();
    ethSigner = null;
  }
}
 
Example 14
@AfterAll
static synchronized void tearDownBase() {
  try {
    if (ethNode != null) {
      ethNode.shutdown();
      ethNode = null;
    }
  } finally {
    if (ethSigner != null) {
      ethSigner.shutdown();
      ethSigner = null;
    }
  }
}
 
Example 15
Source Project: ethsigner   Source File: UpCheckAcceptanceTest.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
static synchronized void tearDownBase() {
  if (ethSigner != null) {
    ethSigner.shutdown();
    ethSigner = null;
  }
}
 
Example 16
Source Project: apicurio-registry   Source File: BaseIT.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
static void afterAll(TestInfo info) throws Exception {
    if (!TestUtils.isExternalRegistry()) {
        registry.stop();
        Thread.sleep(3000);
        //noinspection OptionalGetWithoutIsPresent
        storeRegistryLog(info.getTestClass().get().getCanonicalName());
    }
}
 
Example 17
Source Project: vividus   Source File: SystemStreamTests.java    License: Apache License 2.0 5 votes vote down vote up
@AfterClass
@AfterAll
public static void afterBase() throws IOException
{
    System.setOut(DEFAULT_OUT_STREAM);
    out.close();
    System.setErr(DEFAULT_ERR_STREAM);
    err.close();
}
 
Example 18
Source Project: sdn-rx   Source File: ExceptionTranslationIT.java    License: Apache License 2.0 5 votes vote down vote up
@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 19
Source Project: sdn-rx   Source File: RepositoryWithADifferentDatabaseIT.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
static void dropTestDatabase() {

	try (Session session = neo4jConnectionSupport.driverInstance.session(SessionConfig.forDatabase("system"))) {

		session.run("DROP DATABASE " + TEST_DATABASE_NAME).consume();
	}
}
 
Example 20
Source Project: sdn-rx   Source File: ReactiveExceptionTranslationIT.java    License: Apache License 2.0 5 votes vote down vote up
@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 21
Source Project: camel-quarkus   Source File: CamelDevModeTest.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
public static void cleanUp() throws IOException {
    Files.walk(BASE)
            .sorted(Comparator.reverseOrder())
            .map(Path::toFile)
            .forEach(File::delete);
}
 
Example 22
Source Project: MergeProcessor   Source File: RenamingServiceTest.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
public static void closeAfterAll() {
	try {
		connection.close();
	} catch (SQLException e) {
		LogUtil.throwing(e);
	}
}
 
Example 23
Source Project: jbang   Source File: TestAlias.java    License: MIT License 5 votes vote down vote up
@AfterAll
static void cleanup() throws IOException {
	if (jbangTempDir != null) {
		Files	.walk(jbangTempDir)
				.sorted(Comparator.reverseOrder())
				.map(Path::toFile)
				.forEach(File::delete);
	}
}
 
Example 24
Source Project: synopsys-detect   Source File: DetectorFinderTest.java    License: Apache License 2.0 5 votes vote down vote up
@AfterAll
public static void cleanup() {
    try {
        FileUtils.deleteDirectory(initialDirectoryPath.toFile());
    } catch (final IOException e) {
        // ignore
    }
}
 
Example 25
@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 26
Source Project: clouditor   Source File: EngineAPIResourcesTest.java    License: Apache License 2.0 4 votes vote down vote up
@AfterAll
static void cleanUpOnce() {
  engine.shutdown();
}
 
Example 27
Source Project: smithy   Source File: NodeValidationVisitorTest.java    License: Apache License 2.0 4 votes vote down vote up
@AfterAll
public static void after() {
    MODEL = null;
}
 
Example 28
Source Project: smithy   Source File: UnreferencedShapesTest.java    License: Apache License 2.0 4 votes vote down vote up
@AfterAll
public static void after() {
    model = null;
}
 
Example 29
Source Project: smithy   Source File: RecursiveNeighborSelectorTest.java    License: Apache License 2.0 4 votes vote down vote up
@AfterAll
public static void after() {
    model = null;
}
 
Example 30
Source Project: smithy   Source File: ForwardNeighborSelectorTest.java    License: Apache License 2.0 4 votes vote down vote up
@AfterAll
public static void after() {
    model = null;
}