下面列出了怎么用org.junit.jupiter.api.AfterAll的API类实例代码及写法,或者点击链接到github查看源代码。
@AfterAll
static void cleanupClients() {
caClient.close();
fooClient.close();
barClient.close();
foobarClient.close();
}
@AfterAll
static void stopServers() {
caValidServer.close();
fooServer.close();
foobarServer.close();
System.clearProperty("javax.net.ssl.trustStore");
System.clearProperty("javax.net.ssl.trustStorePassword");
}
@AfterAll
static void stopServers() {
caValidServer.close();
fooServer.close();
foobarServer.close();
System.clearProperty("javax.net.ssl.trustStore");
System.clearProperty("javax.net.ssl.trustStorePassword");
}
@AfterAll
static void stopServers() {
caValidServer.close();
fooServer.close();
barServer.close();
System.clearProperty("javax.net.ssl.trustStore");
System.clearProperty("javax.net.ssl.trustStorePassword");
}
@AfterAll
static void stopServers() {
caValidServer.close();
fooServer.close();
barServer.close();
System.clearProperty("javax.net.ssl.trustStore");
System.clearProperty("javax.net.ssl.trustStorePassword");
}
@AfterAll
static void cleanupClients() {
caClient.close();
fooClient.close();
barClient.close();
foobarClient.close();
}
@AfterAll
static void stopServers() {
caValidServer.close();
fooServer.close();
barServer.close();
foobarServer.close();
System.clearProperty("javax.net.ssl.trustStore");
System.clearProperty("javax.net.ssl.trustStorePassword");
}
@AfterAll
public static void teardown() {
clientAndServer.stop();
vertx.close();
clientAndServer = null;
runner = null;
}
@AfterAll
public static synchronized void tearDownBase() {
if (ethNode != null) {
ethNode.shutdown();
ethNode = null;
}
if (ethSigner != null) {
ethSigner.shutdown();
ethSigner = null;
}
}
@AfterAll
static void tearDown() {
if (hashicorpNode != null) {
hashicorpNode.shutdown();
hashicorpNode = null;
}
}
@AfterAll
public static synchronized void tearDownBase() {
if (ethNode != null) {
ethNode.shutdown();
ethNode = null;
}
if (ethSigner != null) {
ethSigner.shutdown();
ethSigner = null;
}
}
@AfterAll
static void tearDown() {
if (hashicorpNode != null) {
hashicorpNode.shutdown();
hashicorpNode = null;
}
}
@AfterAll
public static synchronized void tearDownBase() {
if (ethNode != null) {
ethNode.shutdown();
ethNode = null;
}
if (ethSigner != null) {
ethSigner.shutdown();
ethSigner = null;
}
}
@AfterAll
static synchronized void tearDownBase() {
try {
if (ethNode != null) {
ethNode.shutdown();
ethNode = null;
}
} finally {
if (ethSigner != null) {
ethSigner.shutdown();
ethSigner = null;
}
}
}
@AfterAll
static synchronized void tearDownBase() {
if (ethSigner != null) {
ethSigner.shutdown();
ethSigner = null;
}
}
@AfterAll
static void afterAll(TestInfo info) throws Exception {
if (!TestUtils.isExternalRegistry()) {
registry.stop();
Thread.sleep(3000);
//noinspection OptionalGetWithoutIsPresent
storeRegistryLog(info.getTestClass().get().getCanonicalName());
}
}
@AfterClass
@AfterAll
public static void afterBase() throws IOException
{
System.setOut(DEFAULT_OUT_STREAM);
out.close();
System.setErr(DEFAULT_ERR_STREAM);
err.close();
}
@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();
}
}
@AfterAll
static void dropTestDatabase() {
try (Session session = neo4jConnectionSupport.driverInstance.session(SessionConfig.forDatabase("system"))) {
session.run("DROP DATABASE " + TEST_DATABASE_NAME).consume();
}
}
@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();
}
@AfterAll
public static void cleanUp() throws IOException {
Files.walk(BASE)
.sorted(Comparator.reverseOrder())
.map(Path::toFile)
.forEach(File::delete);
}
@AfterAll
public static void closeAfterAll() {
try {
connection.close();
} catch (SQLException e) {
LogUtil.throwing(e);
}
}
@AfterAll
static void cleanup() throws IOException {
if (jbangTempDir != null) {
Files .walk(jbangTempDir)
.sorted(Comparator.reverseOrder())
.map(Path::toFile)
.forEach(File::delete);
}
}
@AfterAll
public static void cleanup() {
try {
FileUtils.deleteDirectory(initialDirectoryPath.toFile());
} catch (final IOException e) {
// ignore
}
}
@AfterAll
public static void restorePropertyValues() {
if (droolsDialectJavaCompilerOrig != null) {
System.setProperty(JavaDialectConfiguration.JAVA_COMPILER_PROPERTY, droolsDialectJavaCompilerOrig);
}
if (droolsDialectDefaultOrig != null) {
System.setProperty(DefaultDialectOption.PROPERTY_NAME, droolsDialectDefaultOrig);
}
}
@AfterAll
static void cleanUpOnce() {
engine.shutdown();
}
@AfterAll
public static void after() {
MODEL = null;
}
@AfterAll
public static void after() {
model = null;
}
@AfterAll
public static void after() {
model = null;
}
@AfterAll
public static void after() {
model = null;
}