Junit « Tomcat « JSP-Servlet Q&A





1. Unit-testing servlets    stackoverflow.com

I have a bunch of servlets running under the Tomcat servlet container. I would like to separate test code from production code, so I considered using a test framework. JUnit is nicely ...

2. How to test servlet 3.0 annotations base servlet with an embbedded Tomcat 7 in Junit    stackoverflow.com

I want to write a junit test to verify a tomcat 7 behavior, which is related to the Servlet 3.0 annotations (@WebServlet, @ServletSecurity). What I have so far is this test:

@Test
public ...

3. I've inherited a JSP/Java Servlet web-app, can I JUnit test this (in Tomcat) to get the code coverage?    stackoverflow.com

Happy Friday! I assume somebody out there has a simple answer to this question and I'm hoping you read this post. I haven't really found the answer that I ...