Of course, if I start unit testing the GUI things get a lot more complicated if I want to execute tests in a headless environment (e.g. a CI server). Suggested solution is apparently to use xvfb or a vnc server – see https://joel-costigliola.github.io/assertj/assertj-swing-running.html.
JUnit 5 was released on 2017-10-03. Worth looking at? And what about AssertJ for GUI testing (and other stuff)?
https://joel-costigliola.github.io/assertj/index.html
Looks very promising.
There's also Selenium for Swing GUI testing. See https://github.com/paul-hammant/swing_component_testing (also saved locally in cache/software).
See also https://sqa.stackexchange.com/q/18554.
Of course, if I start unit testing the GUI things get a lot more complicated if I want to execute tests in a headless environment (e.g. a CI server). Suggested solution is apparently to use xvfb or a vnc server – see https://joel-costigliola.github.io/assertj/assertj-swing-running.html.