25 lines
560 B
Java
25 lines
560 B
Java
package app;
|
|
|
|
import javafx.fxml.FXMLLoader;
|
|
import javafx.scene.Parent;
|
|
import javafx.scene.Scene;
|
|
import javafx.stage.Stage;
|
|
|
|
import java.io.IOException;
|
|
|
|
import org.testfx.framework.junit5.ApplicationTest;
|
|
|
|
/**
|
|
* TestFX App test
|
|
*/
|
|
public class AppTest extends ApplicationTest {
|
|
|
|
@Override
|
|
public void start(Stage stage) throws IOException {
|
|
FXMLLoader fxmlLoader = new FXMLLoader(this.getClass().getResource("App.fxml"));
|
|
Parent parent = fxmlLoader.load();
|
|
stage.setScene(new Scene(parent));
|
|
stage.show();
|
|
}
|
|
}
|