Issue
Is it possible to create tests in JUnit and initialize javafx components like linecharts?
Solution
Yes, take a look at TestFX, it supports JUnit 4 and JUnit 5. Haven't seen recent active development on the project, but it works if you aren't looking for very complex tests.
Answered By - Oboe