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
Added interactFast(...) Method to FxRobot(Interface) #268
Conversation
Thanks for the PR. Yes, we definitely need this method. I'm not sure if |
I guess with the Callable it's not a problem (as the result is returned), but in the combination with the Runnable as parameter, I thought that the first impression would be that we do not wait for the Runnable to execute. I assume no one would think of a interact method just using I'm going to change the name. |
See TestFX#268 for discussion.
By the way, any tests required for integration? If so, could you point me to the file where to implement it? |
public FxRobot interactNoWait(Runnable runnable) { | ||
waitFor(asyncFx(runnable)); | ||
return this; | ||
} |
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.
Missing space between the two new methods.
@@ -187,8 +187,45 @@ public PointQuery offset(String query, | |||
// METHODS FOR INTERACTION AND INTERRUPTION. | |||
//--------------------------------------------------------------------------------------------- | |||
|
|||
/** | |||
* Calls a runnable on the FX application thread and waits for it and consecutive events to |
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.
The JavaDoc comment leading stars look misaligned, they should be aligned like so:
/**
* Blah blah.
*
* @param blah
* @return blah
*/
* @param runnable the runnable | ||
* @return this robot | ||
*/ | ||
public FxRobotInterface interactNoWait(Runnable runnable); |
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.
Missing space between new methods.
I restarted the Travis CI build so that you can see the lint errors. I know its been a long time, but are you still interested in moving forward with this PR? Let me know, thanks very much @Ortner . |
All done. |
Thanks very much, could you squash the 4 commits into one with an updated commit message? I will then merge immediately. |
I can try (but need to find a HowTo first :-). |
git rebase -i HEAD~4
# The editor you have configured will popup
# Inside that editor, there will be 4 commits all proceeded by the word 'pick'
# Change the bottom 3 picks to `fixups` and the first pick to `reword`
# Write the commit message accordingly, and save and quit your editor (e.g. `:wq` in vim)
git push --force origin dev2 You can set your git text editor thusly:
|
The interactNoWait method doesn't wait for the gui pulse which makes it much faster. It is especially useful for timing relevant tests e.g. animations and for reading parameters of the gui thread.
Guess it worked. I left out the merge of the master branch, as I assume I should not merge those in the commit. |
Merged. Thanks a lot for your patience. |
Thanks for integrating! |
The interactFast method doesn't wait for the gui pulse which makes it
much faster. It is especially useful for timing relevant tests e.g.
animations and for reading parameters of the gui thread.