Menu

HowToTestDialog

test (1)
Sahits GmbH

Each dialog test is accompanied by a dialog main class that can be used for visual testing with some restrictions:

  • The correct font is not applied.

But the layout and functionality can be checked for the most part.

To start a test several VM options need to be added in order for the application to have all the modules as javafy is no longer part of the SDK;

  • module-path: Add all the JavaFX modules which are OS specific on here, so you have something like this:
    Windows
--module-path
C:\Users\ahotz\.m2\repository\org\openjfx\javafx-controls\11\javafx-controls-11-win.jar;C:\Users\ahotz\.m2\repository\org\openjfx\javafx-controls\11\javafx-controls-11.jar;C:\Users\ahotz\.m2\repository\org\openjfx\javafx-media\11\javafx-media-11-win.jar;C:\Users\ahotz\.m2\repository\org\openjfx\javafx-media\11\javafx-media-11.jar;C:\Users\ahotz\.m2\repository\org\openjfx\javafx-graphics\11\javafx-graphics-11.jar;C:\Users\ahotz\.m2\repository\org\openjfx\javafx-graphics\11\javafx-graphics-11-win.jar;C:\Users\ahotz\.m2\repository\org\openjfx\javafx-base\11\javafx-base-11.jar;C:\Users\ahotz\.m2\repository\org\openjfx\javafx-base\11\javafx-base-11-win.jar
  • Add the modules:
--add-modules
javafx.controls,javafx.media,javafx.graphics,javafx.base
  • As the main application use some reflection to set up all fields some packages in modules need to be opened
--add-opens
javafx.base/com.sun.javafx.beans=ALL-UNNAMED

MongoDB Logo MongoDB