Class ServletUnitClient

java.lang.Object
com.meterware.httpunit.WebClient
com.meterware.servletunit.ServletUnitClient

public class ServletUnitClient extends WebClient
A client for use with the servlet runner class, allowing the testing of servlets without an actual servlet container. Testing can be done in one of two ways. End-to-end testing works much like the HttpUnit package, except that only servlets actually registered with the ServletRunner will be invoked. It is also possible to test servlets 'from the inside' by creating a ServletInvocationContext and then calling any servlet methods which may be desired. Even in this latter mode, end-to-end testing is supported, but requires a call to this class's getResponse method to update its cookies and frames.
Author:
Russell Gold