Savarese.Org

org.savarese.barehttp
Class HTTPTestCase

java.lang.Object
  extended by TestCase
      extended by org.savarese.barehttp.HTTPTestCase
Direct Known Subclasses:
HTTPServerTest, HTTPSessionTest

public abstract class HTTPTestCase
extends TestCase

An abstract class that provides support for testing HTTP requests by creating a temporary file, filling it with random data, issuing requests for the file, and comparing the retrieved data with the original data. Subclasses must override the package-scoped issueRequest method.

Author:
Daniel F. Savarese

Constructor Summary
HTTPTestCase()
           
 
Method Summary
 void testGetRequest09()
          Tests an HTTP 0.9 simple request.
 void testGetRequest11()
          Tests an HTTP 1.1 GET request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPTestCase

public HTTPTestCase()
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

testGetRequest09

public void testGetRequest09()
                      throws java.io.IOException
Tests an HTTP 0.9 simple request.

Throws:
java.io.IOException

testGetRequest11

public void testGetRequest11()
                      throws java.io.IOException
Tests an HTTP 1.1 GET request.

Throws:
java.io.IOException

Savarese.Org

Copyright © 2001,2006,2010,2012 Daniel F. Savarese. All Rights Reserved.