本文整理汇总了Java中org.testfx.api.FxToolkit.cleanupStages方法的典型用法代码示例。如果您正苦于以下问题:Java FxToolkit.cleanupStages方法的具体用法?Java FxToolkit.cleanupStages怎么用?Java FxToolkit.cleanupStages使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.testfx.api.FxToolkit
的用法示例。
在下文中一共展示了FxToolkit.cleanupStages方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: basicAfterEach
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
/**
* 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();
}
示例2: tearDown
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
/* Close the window. It will be re-opened at the next test. */
FxToolkit.cleanupStages();
FxToolkit.hideStage();
release(new KeyCode[] {});
release(new MouseButton[] {});
MainStorage.getInstance().use(originalStorageDirectory);
}
示例3: tearDownStage
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
/**
* Tears down existing stages.
*/
public void tearDownStage() {
try {
FxToolkit.cleanupStages();
} catch (TimeoutException te) {
throw new AssertionError("Stage takes too long to tear down.");
}
}
示例4: tearDown
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
FxToolkit.cleanupStages();
}
示例5: cleanup
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@After
public void cleanup() throws Exception {
FxToolkit.cleanupStages();
}
示例6: after
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
protected void after() throws Throwable {
FxToolkit.cleanupStages();
}
示例7: start
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Override
public void start(Stage arg0) throws Exception {
// Prevent exceptions from showing during service testing.
FxToolkit.cleanupStages();
}