Does anybody know how to test an servlet class using Junit without using Cactus test . Is it possible to test a servlet using Junit without cactus test.Please tell me the process how to test a servlet using Junit test .
I am just a brick in the wall of Java
posted 8 years ago
Depends on what exactly you want to test. For roundtrips tests to a web server or servlet container I recommend jWebUnit.
But you could also use a mock library (such as jmock or easymock) to create mock objects for the servlet-specific classes, and integrate the tests into your test suite that way.