Re: Unit Tests with Jemmy
855837Apr 15 2013 — edited Apr 16 2013I have a need for running headless beyond just for testing. I'd like to make a library that uses JavaFX properties/tasks that can either run headless, or can use the same tasks to run in a GUI that can display the progress info generated by the tasks. javafx.concurrent.Task seems perfect, except that when I try to run a task inside a maven mojo, I get:
java.lang.IllegalStateException: Toolkit not initialized
I'm currently running JavaFX 2.2.7 on OS X 10.8.3.
Is there a way to enable properties/Task in a headless environment on 2.2.7? Will there be a way for 8.0?
I don't need to run any GUI stuff headless, I just want to use the excellent JavaFX properties model in a way that is reusable across GUI and headless environments.
Thanks,
Keith