org.dbforms.util
Class HttpTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbforms.util.HttpTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class HttpTestCase
extends junit.framework.TestCase


Constructor Summary
HttpTestCase(String name)
          Creates a new HttpTestCase object.
 
Method Summary
 void get(String url)
          DOCUMENT ME!
 void get(String url, List args)
          DOCUMENT ME!
protected  com.meterware.httpunit.WebResponse getResponse()
          DOCUMENT ME!
 void post(String url)
          DOCUMENT ME!
 void post(String url, List args)
          DOCUMENT ME!
protected  void println(String s)
          DOCUMENT ME!
protected  void printResponse()
          DOCUMENT ME!
protected  boolean responseContains(String text)
          DOCUMENT ME!
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, 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

HttpTestCase

public HttpTestCase(String name)
Creates a new HttpTestCase object.

Parameters:
name - DOCUMENT ME!
Method Detail

get

public void get(String url)
         throws Exception
DOCUMENT ME!

Parameters:
url - DOCUMENT ME!
Throws:
Exception - DOCUMENT ME!

get

public void get(String url,
                List args)
         throws Exception
DOCUMENT ME!

Parameters:
url - DOCUMENT ME!
args - DOCUMENT ME!
Throws:
Exception - DOCUMENT ME!

post

public void post(String url)
          throws Exception
DOCUMENT ME!

Parameters:
url - DOCUMENT ME!
Throws:
Exception - DOCUMENT ME!

post

public void post(String url,
                 List args)
          throws Exception
DOCUMENT ME!

Parameters:
url - DOCUMENT ME!
args - DOCUMENT ME!
Throws:
Exception - DOCUMENT ME!

getResponse

protected com.meterware.httpunit.WebResponse getResponse()
DOCUMENT ME!

Returns:
DOCUMENT ME!

printResponse

protected void printResponse()
                      throws Exception
DOCUMENT ME!

Throws:
Exception - DOCUMENT ME!

println

protected void println(String s)
DOCUMENT ME!

Parameters:
s - DOCUMENT ME!

responseContains

protected boolean responseContains(String text)
                            throws Exception
DOCUMENT ME!

Parameters:
text - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
Exception - DOCUMENT ME!


Copyright © 2002-2005 DbForms. All Rights Reserved.