jeudi 30 juin 2016

Is it possible to run JUnit Tests for classes such as Controllers, Models in a Java WEB application?

Recently, I have been attempting to run JUnit tests on my controllers that I have wrote in my Java Web Application. The controller methods are simple and are running methods such as 'Login', 'Logout', etc.

However, when I attempted to run the JUnit tests, it constantly fails to start. But if I were to extract solely the classes to a separate Java Application, I would have no issues running the tests.

Does anybody know if there are special configuration required for Java Web Application JUnit Testing?

Thank you! :)




Aucun commentaire:

Enregistrer un commentaire