Angel
Angel

Reputation: 155

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

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.

Upvotes: 0

Views: 130

Answers (1)

Niklas P
Niklas P

Reputation: 3517

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.

Upvotes: 1

Related Questions