0

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

XtrEmE
  • 13
  • 6

2 Answers2

0

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

Stefan Birkner
  • 24,059
  • 12
  • 57
  • 72
0

You don't have to use TestFX, it's just a good third party library. There are many other options like JUnit.

Musti
  • 139
  • 1
  • 9
  • I'm writing tests for first time to my project and I just found a TestFX tutorial. That's why I would like to use it because I didn't find JUnit tutorial with JavaFX and I don't know how it works with controllers. – XtrEmE Oct 17 '17 at 21:05