How to make JUnit tests with Tomcat 8 + JSF 2.2?

131 views Asked by At

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.

1

There are 1 answers

0
Niklas P On BEST ANSWER

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.