-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: java 11 support #63
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR also includes some of https://github.com/eficode/JavaFXLibrary/tree/java-11-support branch solutions and has solutions to unresolved issues in that branch.
@@ -50,7 +53,7 @@ public void getMouseButtons_MultipleValues() { | |||
public void getMouseButtons_InvalidValue() { | |||
thrown.expect(JavaFXLibraryNonFatalException.class); | |||
// thrown.expect(IllegalArgumentException.class); | |||
thrown.expectMessage("\"HUGE_RED_ONE\" is not a valid MouseButton. Accepted values are: [NONE, PRIMARY, MIDDLE, SECONDARY]"); | |||
thrown.expectMessage("\"HUGE_RED_ONE\" is not a valid MouseButton. Accepted values are: " + Arrays.asList(MouseButton.values())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a mouse with back and forward buttons. Test failed since message had BACK and FORWARD values.
@@ -391,7 +424,7 @@ | |||
<dependency> | |||
<groupId>org.testfx</groupId> | |||
<artifactId>openjfx-monocle</artifactId> | |||
<version>8u76-b04</version> | |||
<version>jdk-12.0.1+2</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jdk-11+26 version did not work. Had some missing methods. Upgrading resolved issues.
@@ -128,6 +128,8 @@ public JavaFXLibrary(boolean headless) { | |||
if (headless) { | |||
System.setProperty("testfx.robot", "glass"); | |||
System.setProperty("testfx.headless", "true"); | |||
System.setProperty("glass.platform", "Monocle"); | |||
System.setProperty("monocle.platform", "Headless"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relates to previous comment. Maybe these are not necessary?
RobotLog.info("Index number: " + i); | ||
columnCells.add(mapObject(vf.getCell(i).getChildrenUnmodifiable().get(column))); | ||
} | ||
Optional<VirtualFlow> vf = table.getChildrenUnmodifiable().stream().filter(node -> node instanceof VirtualFlow).map(VirtualFlow.class::cast).findFirst(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed public API in JavaFX.
Java 11 support. Currently tested on Windows machine so may need some extra work on other machines. CI is not fixed yet.
Implements #23