Search in sources :

Example 1 with ReportController

use of eu.ggnet.dwoss.report.ui.main.ReportController in project dwoss by gg-net.

the class ReportControllerTest method testJavaFxFxml.

@Test
public void testJavaFxFxml() throws IOException {
    if (GraphicsEnvironment.isHeadless())
        return;
    // Implizit start of JavaFx.
    new JFXPanel();
    FXMLLoader loader = new FXMLLoader(ReportController.loadFxml());
    loader.load();
    assertThat((ReportController) loader.getController()).isNotNull();
}
Also used : JFXPanel(javafx.embed.swing.JFXPanel) FXMLLoader(javafx.fxml.FXMLLoader) ReportController(eu.ggnet.dwoss.report.ui.main.ReportController) Test(org.junit.Test)

Aggregations

ReportController (eu.ggnet.dwoss.report.ui.main.ReportController)1 JFXPanel (javafx.embed.swing.JFXPanel)1 FXMLLoader (javafx.fxml.FXMLLoader)1 Test (org.junit.Test)1