@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(); }
@AfterEach void afterEach(OutputCapture outputCapture) { System.out.println("@AfterEach"); outputCapture.expect(containsString("@BeforeEach")); outputCapture.expect(containsString("@AfterEach")); }
@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")); } }
/** * 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(); }
@AfterEach public void stop() { if (vertx != null) { logger.info("Stopping embedded HTTP server"); vertx.close(); logger.info("Stopped embedded HTTP server"); } }
@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()); }
@AfterEach void tearDown() throws Exception { for (final Path path : Files.list(directory).collect(toList())) { Files.delete(path); } Files.delete(directory); }
@AfterEach public void tearDown() throws Exception { DataSource dataSource = (DataSource) ctx.getBean("dataSource"); if (dataSource instanceof EmbeddedDatabase) { ((EmbeddedDatabase) dataSource).shutdown(); } }
@AfterEach @After public void rollbackTransaksjon() { if (platformTransactionManager != null && transactionStatus != null) { platformTransactionManager.rollback(transactionStatus); } }
@AfterEach void tearDown() { command = null; }
@AfterEach void tearDown() throws IOException, SQLException { fileDatabase.close(); super.tearDown(); }
@AfterEach void tearDown() throws IOException, SQLException { deleteDatabaseFile(); }
@AfterEach void tearDown() throws IOException, SQLException { fileDatabaseDriver.close(); super.tearDown(); }
@AfterEach void tearDown() throws IOException { Arrays.stream(new File(GFA_FILE_NAME).getParentFile().listFiles()) .filter(file -> file.getName().endsWith(".png")) .forEach(File::delete); }
@AfterEach void tearDown() throws IOException { deleteDataFile(); }
/** * Resets this {@link GraphTestBase}'s fields. */ @AfterEach final void afterEach() { graph = null; nodeArrays = null; }
@AfterEach void afterEach() throws IOException { Files.deleteIfExists(Paths.get(GFA_TEST_FILE + FileDatabaseDriver.DB_FILE_EXTENSION)); Files.deleteIfExists(Paths.get(GFA_TEST_FILE + ".hygenecache")); }
@AfterEach void afterEach() { MetadataParserFactory.setInstance(null); HygeneEventBus.getInstance().unregister(cache); }
@AfterEach void tearDown() { System.setErr(err); }
@AfterEach void cleanup() throws IOException { Files.deleteIfExists(Paths.get(CLINICAL_DOCUMENT_ERROR_FILE)); }
@AfterEach void teardown() throws IOException { Files.deleteIfExists(Paths.get("defaultedNode.qpp.json")); }
@AfterEach void teardown() throws IOException, IllegalArgumentException, IllegalAccessException { fileSystemField.set(null, defaultFileSystem); fileSystem.close(); }
@AfterEach public final void resetProperties() { System.setProperties(properties); }
@AfterEach void runAfterEachTest() { //un pause separate thread when the test stops (with success or failure) objectUnderTest.pauseAsynchronousAction.set(false); }
@AfterEach void runAfterEachTest() { objectUnderTest.pauseAsynchronousAction.set(false); }
@AfterEach void turnOffFeatureFlag() { System.clearProperty(Constants.NO_CPC_PLUS_API_ENV_VARIABLE); }
@AfterEach void teardown() { wireMockServer.stop(); }
@AfterEach default void afterEachTest(TestInfo testInfo) { log.info("Finished executing {}", testInfo.getDisplayName()); }
@AfterEach void teardown() { temporaryFolder.delete(); }
@AfterEach void teardown() { System.out.println("Teardown EACH TEST in the class"); }
@AfterEach void tearDown() { testDatabase.tearDown(); }