use of tryout.stub.RightsAgentStub in project dwoss by gg-net.
the class RightsManagmentControllerTest method testJavaFxFxml.
@Test
public void testJavaFxFxml() throws IOException {
if (GraphicsEnvironment.isHeadless())
return;
// Implizit start of JavaFx.
new JFXPanel();
Dl.remote().add(RightsAgent.class, new RightsAgentStub());
FXMLLoader loader = new FXMLLoader(RightsManagmentController.loadFxml());
loader.load();
assertThat((RightsManagmentController) loader.getController()).isNotNull();
}
use of tryout.stub.RightsAgentStub in project dwoss by gg-net.
the class RightsManagmentControllerTryout method main.
public static void main(String[] args) {
Dl.remote().add(RightsAgent.class, new RightsAgentStub());
UiCore.startSwing(() -> {
JPanel main = new JPanel();
main.add(new JButton(new RightsManagmentAction()));
return main;
});
}
Aggregations