Yes, I am also trying to create test harness in JUnit for the servlets I've written. To take this one step further, the test harnesses to cover my DAO objects.
But the problem is JUnit runs from command prompt so having Server JNDI lookup errors, for DAO the driver manager is not loaded and so on. Is there a better way to write codes (yet in JUnit) for DAO and Servlets? Please share your thoughts and ideas. David -----Original Message----- From: Osama Mohsin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 5:23 AM To: [EMAIL PROTECTED] Subject: Re: Test Servlet I'd like to test it using JUnit or something like this. Is there a tool better than JUnit? I have already tested it on Tomcat, but I want to do automated test. -----Original Message----- From: Chen, Gin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 5:17 PM To: [EMAIL PROTECTED] Subject: Re: Test Servlet Is there something in particular that you want to test? Something above just deploying it and seeing if it works? -Tim -----Original Message----- From: Osama Mohsin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 8:17 AM To: [EMAIL PROTECTED] Subject: Test Servlet Hi everybody, I have been working in developing some servlets what is the best way to test my servlet. Thanks, Osama ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
