Search in sources :

Example 1 with OperatorManagmentController

use of eu.ggnet.dwoss.rights.OperatorManagmentController in project dwoss by gg-net.

the class OperatorManagmentControllerTest method testJavaFxFxml.

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

Aggregations

OperatorManagmentController (eu.ggnet.dwoss.rights.OperatorManagmentController)1 JFXPanel (javafx.embed.swing.JFXPanel)1 FXMLLoader (javafx.fxml.FXMLLoader)1 Test (org.junit.Test)1