Hi can any one explain how to do unit testing for a web application.Any example code or link will be helpful.Thanks in advance.And please tell me what we can test with junit eg- jsp,servlet,pojo,ejb etc in a web application
posted 8 years ago
You can unit test pretty much any Java code, whether it's for a web application or a pure back-end system. You just instantiate the objects you want to test in your JUnit test method and go about asserting stuff.
What I suspect you're looking for, though, is functional testing of a web application. For that, you should look for tools such as JWebUnit, Watir and Selenium.