0

I would like to know how to make JUnit tests with Tomcat 8 + JSF 2.2? What kind of things can I test with JUnit? the view?, the model?, the control?

Do I have to make use of another tool with JUnit in order to make test cases?

Thanks.

Angel
  • 155
  • 1
  • 1
  • 14

1 Answers1

1

As in every program - with JUnit-Tests you are able to test units/components/classes. To test the combination of your classes with the JSF framework (if these tests really are needed) I would use GUI (integration-)tests with Selenium or other tools to simulate the use of the web application.

Niklas P
  • 3,427
  • 2
  • 15
  • 19