From: Mickael V. <mv...@ge...> - 2003-11-13 14:18:18
|
Hi everyboy, I don't understand how to test a servlet, all classes of the package com.mockobjects.servlet don't implement any interface of java servlets package. I have a servlet, I'd like to instanciate it and send it requests. My idea is to create a new class that inherits from my servlet in order to add it a ServletContext. Is it a good way ? I don't understand how to use MockServletContext as it doesn't implement the javax.servlet.ServletContext interface ? Mickael |