本文整理汇总了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();
}
示例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));
}
示例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);
}
示例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;
}
示例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;
}
示例6: setupApp
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public void setupApp() throws Exception {
FxToolkit.registerPrimaryStage();
FxToolkit.setupApplication(getAppClass());
}
示例7: before
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public void before() throws TimeoutException {
FxToolkit.registerPrimaryStage();
FxToolkit.setupApplication(DummyApplication.class);
}
示例8: before
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public void before() throws TimeoutException {
FxToolkit.registerPrimaryStage();
FxToolkit.setupApplication(MineSim.class);
}
示例9: before
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public void before() throws TimeoutException {
FxToolkit.registerPrimaryStage();
FxToolkit.setupApplication(DummyApplication.class);
stackPane = new StackPane();
}
示例10: internalBefore
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public final void internalBefore()
throws Exception {
FxToolkit.registerPrimaryStage();
FxToolkit.setupApplication(this);
}
示例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);
}
示例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");
}
示例13: setup
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Before
public void setup() throws Exception {
FxToolkit.setupApplication(TestUI.class, "--test=true", "--bypasslogin=true");
}
示例14: setup
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Override
public void setup() throws TimeoutException{
FxToolkit.setupApplication(TestUI.class, "--startupboard=true");
}
示例15: setup
import org.testfx.api.FxToolkit; //导入方法依赖的package包/类
@Override
public void setup() throws TimeoutException {
FxToolkit.setupApplication(TestUI.class, "--test=true");
}