当前位置: 首页>>代码示例>>Java>>正文


Java FxToolkit.setupApplication方法代码示例

本文整理汇总了Java中org.testfx.api.FxToolkit.setupApplication方法的典型用法代码示例。如果您正苦于以下问题:Java FxToolkit.setupApplication方法的具体用法?Java FxToolkit.setupApplication怎么用?Java FxToolkit.setupApplication使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.testfx.api.FxToolkit的用法示例。


在下文中一共展示了FxToolkit.setupApplication方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: basicBeforeEach

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
/**
 * Set up application before each test.
 * Afterwards, calls the {@link #beforeEach()} method.
 *
 * @throws TimeoutException if unable to set up application
 * @throws UIInitialisationException if ui was not properly initialized
 * @see FxToolkit#setupApplication(Class, String...)
 */
@BeforeEach
public final void basicBeforeEach() throws TimeoutException, UIInitialisationException {
    this.primaryStage = FxToolkit.registerPrimaryStage();
    this.application = (Hygene) FxToolkit.setupApplication(Hygene.class);

    this.context = Hygene.getInstance().getContext();

    FxToolkit.showStage();

    beforeEach();
}
 
开发者ID:ProgrammingLife2017,项目名称:hygene,代码行数:20,代码来源:UITestBase.java

示例2: setup

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
private void setup() throws Exception {
    clientInjector = Guice.createInjector(new AppModule());
    serverInjector = Guice.createInjector(new ServerModule());

    FxToolkit.registerPrimaryStage();
    FxToolkit.setupApplication(() -> new ApplicationAdapter(this));
}
 
开发者ID:aalmiray,项目名称:javatrove,代码行数:8,代码来源:FunctionalTestRule.java

示例3: setup

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public void setup() throws Exception {
    FxToolkit.registerPrimaryStage();
    app = new TestApp();
    app.savedInitialView = AnnotatedView.class;
    app.splashScreen = new SplashScreen();
    FxToolkit.setupApplication(() -> app);
}
 
开发者ID:roskenet,项目名称:springboot-javafx-support,代码行数:9,代码来源:AbstractJavaFxApplicationSupportTest.java

示例4: setupApplication

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
/**
 * Sets up a new {@code TestApp} and returns it.
 */
public TestApp setupApplication(Supplier<ReadOnlyAddressBook> addressBook, String saveFileLocation) {
    try {
        FxToolkit.registerStage(Stage::new);
        FxToolkit.setupApplication(() -> testApp = new TestApp(addressBook, saveFileLocation));
    } catch (TimeoutException te) {
        throw new AssertionError("Application takes too long to set up.");
    }

    return testApp;
}
 
开发者ID:se-edu,项目名称:addressbook-level4,代码行数:14,代码来源:SystemTestSetupHelper.java

示例5: launch

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
public static Stage launch(Class<? extends Application> appClass,
                          String... appArgs) throws Exception {
    if(stage==null)
    {stage = FxToolkit.registerPrimaryStage();
    FxToolkit.setupApplication(appClass, appArgs);}
    return stage;
}
 
开发者ID:jughyd,项目名称:GitFx,代码行数:8,代码来源:ApplicationTest.java

示例6: setupApp

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public void setupApp() throws Exception {
    FxToolkit.registerPrimaryStage();

    FxToolkit.setupApplication(getAppClass());
}
 
开发者ID:lestard,项目名称:todomvcFX,代码行数:7,代码来源:AbstractTest.java

示例7: before

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public void before() throws TimeoutException {
    FxToolkit.registerPrimaryStage();
    FxToolkit.setupApplication(DummyApplication.class);
}
 
开发者ID:UQdeco2800,项目名称:minesim,代码行数:6,代码来源:NotificationViewTests.java

示例8: before

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public void before() throws TimeoutException {
    FxToolkit.registerPrimaryStage();
    FxToolkit.setupApplication(MineSim.class);
}
 
开发者ID:UQdeco2800,项目名称:minesim,代码行数:6,代码来源:UITest.java

示例9: before

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public void before() throws TimeoutException {
    FxToolkit.registerPrimaryStage();
    FxToolkit.setupApplication(DummyApplication.class);
    stackPane = new StackPane();
}
 
开发者ID:UQdeco2800,项目名称:minesim,代码行数:7,代码来源:ContextAreaHandlerTests.java

示例10: internalBefore

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public final void internalBefore()
        throws Exception {
    FxToolkit.registerPrimaryStage();
    FxToolkit.setupApplication(this);
}
 
开发者ID:jughyd,项目名称:GitFx,代码行数:7,代码来源:ApplicationTest.java

示例11: setup

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Override
public void setup() throws TimeoutException {
    FxToolkit.setupApplication(TestUI.class, "--testconfig=true");
    UI.events.registerEvent((PrimaryRepoChangedEventHandler) e -> primaryRepo = e.repoId);
}
 
开发者ID:HubTurbo,项目名称:HubTurbo,代码行数:6,代码来源:RepositoryPickerTest.java

示例12: setup

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Override
public void setup() throws TimeoutException {
    FxToolkit.setupApplication(UITest.TestUI.class, "--test=true", "--testjson=true", "--bypasslogin=true");
}
 
开发者ID:HubTurbo,项目名称:HubTurbo,代码行数:5,代码来源:ModelUpdateUITest.java

示例13: setup

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public void setup() throws Exception {
    FxToolkit.setupApplication(TestUI.class, "--test=true", "--bypasslogin=true");
}
 
开发者ID:HubTurbo,项目名称:HubTurbo,代码行数:5,代码来源:UITest.java

示例14: setup

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Override
public void setup() throws TimeoutException{
    FxToolkit.setupApplication(TestUI.class, "--startupboard=true");
}
 
开发者ID:HubTurbo,项目名称:HubTurbo,代码行数:5,代码来源:StartupBoardLauncherTest.java

示例15: setup

import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Override
public void setup() throws TimeoutException {
    FxToolkit.setupApplication(TestUI.class, "--test=true");
}
 
开发者ID:HubTurbo,项目名称:HubTurbo,代码行数:5,代码来源:InvalidLoginTest.java


注:本文中的org.testfx.api.FxToolkit.setupApplication方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。