Search code examples
testingjavafxjunittestfx

Implementing TestFX in the Eclipse


I would like to write tests to my project in JavaFX and I've read that I have to use TestFX, so I want to implement the library to my eclipse. But I still can't resolve my problem (look at picture). I was looking for a solution but it was unsuccessful. I've imported all the necessary jar files to use TestFX... Have you any idea where can be a reason?

When I move my mouse on the "red light bulb" there is information "The type com.google.common.base.Predicate cannot be resolved. It is indirectly referenced from required .class files"

Eclipse Picture


Solution

  • You have to add the Jar of the Guava library to your classpath.