Java 类org.junit.jupiter.api.AfterEach 实例源码

项目:ocraft-s2client    文件:OcraftS2ClientStressIT.java   
@AfterEach
void tearDown() {
    if (isSet(client)) {
        client.stop();
        client = null;
    }
    if (isSet(game)) {
        game.stopAndWait();
        game = null;
    }

    System.clearProperty(OcraftConfig.CLIENT_BUFFER_SIZE_RESPONSE_STREAM);
    System.clearProperty(OcraftConfig.CLIENT_BUFFER_SIZE_RESPONSE_EVENT_BUS);
    System.clearProperty(OcraftConfig.CLIENT_BUFFER_SIZE_RESPONSE_BACKPRESSURE);
    System.clearProperty(OcraftConfig.CLIENT_BUFFER_SIZE_REQUEST_EVENT_BUS);
    System.clearProperty(OcraftConfig.CLIENT_BUFFER_SIZE_REQUEST_QUEUE);
    refreshConfig();
}
项目:junit5-demo    文件:SystemOutputTests.java   
@AfterEach
void afterEach(OutputCapture outputCapture) {
    System.out.println("@AfterEach");

    outputCapture.expect(containsString("@BeforeEach"));
    outputCapture.expect(containsString("@AfterEach"));
}
项目:hygene    文件:GfaFileTest.java   
@AfterEach
void afterEach() throws IOException {
    GfaParserFactory.setInstance(null);
    MetadataParserFactory.setInstance(null);
    if (currentFileName != null) {
        Files.deleteIfExists(Paths.get(currentFileName + FileDatabaseDriver.DB_FILE_EXTENSION));
        Files.deleteIfExists(Paths.get(currentFileName + ".hygenecache"));
    }
}
项目:hygene    文件:UITestBase.java   
/**
 * Hide the application after each test.
 * Afterwards, calls the {@link #afterEach()} method.
 *
 * @throws TimeoutException if unable to hide application
 */
@AfterEach
public final void basicAfterEach() throws TimeoutException, UIInitialisationException {
    FxToolkit.cleanupApplication(Hygene.getInstance());
    FxToolkit.cleanupStages();

    afterEach();
}
项目:dragoman    文件:AbstractResourceTest.java   
@AfterEach
public void stop() {
  if (vertx != null) {
    logger.info("Stopping embedded HTTP server");
    vertx.close();
    logger.info("Stopped embedded HTTP server");
  }
}
项目:dragoman    文件:MongoRepositoryTest.java   
@AfterEach
public void tearDown() {
  StopWatch stopWatch = StopWatch.start();
  getMongoClient()
      .getDatabase(storageCoordinates.getDatabaseName())
      .drop()
      .subscribe(
          success -> logger.info("Dropped database: {}", storageCoordinates.getDatabaseName()));
  logger.info("Dropped test data in {}ms", stopWatch.stop());
}
项目:AdvancedDataProfilingSeminar    文件:TPMMSTest.java   
@AfterEach
void tearDown() throws Exception {
  for (final Path path : Files.list(directory).collect(toList())) {
    Files.delete(path);
  }
  Files.delete(directory);
}
项目:odotCore    文件:ItemDaoTest.java   
@AfterEach
public void tearDown() throws Exception {
  DataSource dataSource = (DataSource) ctx.getBean("dataSource");
  if (dataSource instanceof EmbeddedDatabase) {
    ((EmbeddedDatabase) dataSource).shutdown();
  }
}
项目:odotCore    文件:ItemDaoTest.java   
@AfterEach
public void tearDown() throws Exception {
  DataSource dataSource = (DataSource) ctx.getBean("dataSource");
  if (dataSource instanceof EmbeddedDatabase) {
    ((EmbeddedDatabase) dataSource).shutdown();
  }
}
项目:odotCore    文件:ItemDaoTest.java   
@AfterEach
public void tearDown() throws Exception {
  DataSource dataSource = (DataSource) ctx.getBean("dataSource");
  if (dataSource instanceof EmbeddedDatabase) {
    ((EmbeddedDatabase) dataSource).shutdown();
  }
}
项目:odotCore    文件:CategoryDaoTest.java   
@AfterEach
public void tearDown() throws Exception {
  DataSource dataSource = (DataSource) ctx.getBean("dataSource");
  if (dataSource instanceof EmbeddedDatabase) {
    ((EmbeddedDatabase) dataSource).shutdown();
  }
}
项目:odotCore    文件:CategoryDaoTest.java   
@AfterEach
public void tearDown() throws Exception {
  DataSource dataSource = (DataSource) ctx.getBean("dataSource");
  if (dataSource instanceof EmbeddedDatabase) {
    ((EmbeddedDatabase) dataSource).shutdown();
  }
}
项目:odotCore    文件:CategoryDaoTest.java   
@AfterEach
public void tearDown() throws Exception {
  DataSource dataSource = (DataSource) ctx.getBean("dataSource");
  if (dataSource instanceof EmbeddedDatabase) {
    ((EmbeddedDatabase) dataSource).shutdown();
  }
}
项目:fo-veilarbjobbsokerkompetanse    文件:AbstractIntegrasjonsTest.java   
@AfterEach
@After
public void rollbackTransaksjon() {
    if (platformTransactionManager != null && transactionStatus != null) {
        platformTransactionManager.rollback(transactionStatus);
    }
}
项目:ProjectAltaria    文件:AbstractCommandTest.java   
@AfterEach
void tearDown() {
    command = null;
}
项目:hygene    文件:FileBookmarksTest.java   
@AfterEach
void tearDown() throws IOException, SQLException {
    fileDatabase.close();
    super.tearDown();
}
项目:hygene    文件:GraphLoaderTest.java   
@AfterEach
void tearDown() throws IOException, SQLException {
    fileDatabase.close();

    super.tearDown();
}
项目:hygene    文件:FileGenomeMappingControllerTest.java   
@AfterEach
void tearDown() throws IOException, SQLException {
    fileDatabase.close();
    super.tearDown();
}
项目:hygene    文件:FileDatabaseTestBase.java   
@AfterEach
void tearDown() throws IOException, SQLException {
    deleteDatabaseFile();
}
项目:hygene    文件:FileDatabaseTest.java   
@AfterEach
void tearDown() throws IOException, SQLException {
    fileDatabase.close();
    super.tearDown();
}
项目:hygene    文件:FileDatabaseDriverTest.java   
@AfterEach
void tearDown() throws IOException, SQLException {
    fileDatabaseDriver.close();
    super.tearDown();
}
项目:hygene    文件:FileMetadataTest.java   
@AfterEach
void tearDown() throws IOException, SQLException {
    fileDatabase.close();
    super.tearDown();
}
项目:hygene    文件:SnapshotTest.java   
@AfterEach
void tearDown() throws IOException {
    Arrays.stream(new File(GFA_FILE_NAME).getParentFile().listFiles())
            .filter(file -> file.getName().endsWith(".png"))
            .forEach(File::delete);
}
项目:hygene    文件:RecentDirectoryTest.java   
@AfterEach
void tearDown() throws IOException {
    deleteDataFile();
}
项目:hygene    文件:GraphTestBase.java   
/**
 * Resets this {@link GraphTestBase}'s fields.
 */
@AfterEach
final void afterEach() {
    graph = null;
    nodeArrays = null;
}
项目:hygene    文件:SearchQueryTest.java   
@AfterEach
void afterEach() throws IOException {
    Files.deleteIfExists(Paths.get(GFA_TEST_FILE + FileDatabaseDriver.DB_FILE_EXTENSION));
    Files.deleteIfExists(Paths.get(GFA_TEST_FILE + ".hygenecache"));
}
项目:hygene    文件:NodeMetadataCacheTest.java   
@AfterEach
void afterEach() {
    MetadataParserFactory.setInstance(null);
    HygeneEventBus.getInstance().unregister(cache);
}
项目:qpp-conversion-tool    文件:RegistryTest.java   
@AfterEach
void tearDown() {
    System.setErr(err);
}
项目:qpp-conversion-tool    文件:ClinicalDocumentValidatorTest.java   
@AfterEach
void cleanup() throws IOException {
    Files.deleteIfExists(Paths.get(CLINICAL_DOCUMENT_ERROR_FILE));
}
项目:qpp-conversion-tool    文件:ConversionEntryTest.java   
@AfterEach
void teardown() throws IOException {
    Files.deleteIfExists(Paths.get("defaultedNode.qpp.json"));
}
项目:qpp-conversion-tool    文件:ConverterWithAbridgedTest.java   
@AfterEach
void teardown() throws IOException, IllegalArgumentException, IllegalAccessException {
    fileSystemField.set(null, defaultFileSystem);
    fileSystem.close();
}
项目:qpp-conversion-tool    文件:PropertiesTestSuite.java   
@AfterEach
public final void resetProperties() {
    System.setProperties(properties);
}
项目:qpp-conversion-tool    文件:InOrderAsyncActionServiceTest.java   
@AfterEach
void runAfterEachTest() {
    //un pause separate thread when the test stops (with success or failure)
    objectUnderTest.pauseAsynchronousAction.set(false);
}
项目:qpp-conversion-tool    文件:AnyOrderAsyncActionServiceTest.java   
@AfterEach
void runAfterEachTest() {
    objectUnderTest.pauseAsynchronousAction.set(false);
}
项目:qpp-conversion-tool    文件:CpcFileControllerV1Test.java   
@AfterEach
void turnOffFeatureFlag() {
    System.clearProperty(Constants.NO_CPC_PLUS_API_ENV_VARIABLE);
}
项目:mastering-junit5    文件:RemoteFileTest.java   
@AfterEach
void teardown() {
    wireMockServer.stop();
}
项目:mastering-junit5    文件:TestLifecycleLogger.java   
@AfterEach
default void afterEachTest(TestInfo testInfo) {
    log.info("Finished executing {}", testInfo.getDisplayName());
}
项目:mastering-junit5    文件:TemporaryFolderRuleTest.java   
@AfterEach
void teardown() {
    temporaryFolder.delete();
}
项目:mastering-junit5    文件:LifecycleJUnit5Test.java   
@AfterEach
void teardown() {
    System.out.println("Teardown EACH TEST in the class");
}
项目:AdvancedDataProfilingSeminar    文件:MindTest.java   
@AfterEach
void tearDown() {
  testDatabase.tearDown();
}