Search code examples
model-view-controllerjunitjsf-2.2tomcat8arquillian-drone

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.


Solution

  • 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.