Testing GUI applications is difficult in any context. I don't know of anyone doing this with Java in CodeRunner. It might in principle be possible to hook into a headless JavaFX testing framework, but unless someone else jumps in to help, you're on your own here.
Forum
Question Authors' Forum
Test JavaFX ?
Für dieses Forum ist eine Höchstzahl von Beiträgen innerhalb eines bestimmten Zeitraums festgelegt worden. Dies gilt nach 5 Beiträgen innerhalb von 1 Tag