servletunit

example of using ServletUnit to test JSP's

Can anyone point me to an example of how to use ServletUnit to test JSP's? Do I need I need to call registerServlet()? If so, what class name do I pass? ...

Is is possible to capture the type parameter of a trait using Manifests in Scala 2.7.7?

I'm writing a ServletUnitTest trait in Scala to provide a convenience API for ServletUnit. I have something like the following in mind: /** * Utility trait for HttpUnit/ServletUnit tests * * @param [T] Type parameter for the class under test */ trait ServletUnitTest[T <: HttpServlet] { /** * Resource name of the servlet, us...

How can I unit test a servlet with a request that just consists of xml content

I'm trying to unit test a java WFS web service implementation. The service can accept requests containing KVP params such as: http://www.someserver.com/wfs&amp;SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=GetFeature&amp;TYPENAME=InWaterA_1M or it can also accept a request containing an XML fragment such as <?xml version="1.0" ?> <...