com.meterware.servletunit
Class ServletTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.meterware.servletunit.ServletTestCase
All Implemented Interfaces:
Test

public abstract class ServletTestCase
extends TestCase

A base class for test cases to be run via JUnitServlet.

Author:
Russell Gold

Constructor Summary
protected ServletTestCase(String name)
           
 
Method Summary
protected  ServletUnitClient newClient()
          Returns a client object which can access the servlet context in which this test is running.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletTestCase

protected ServletTestCase(String name)
Method Detail

newClient

protected final ServletUnitClient newClient()
Returns a client object which can access the servlet context in which this test is running.