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 ?
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 5 posting(s) in 1 day