org.savarese.barehttp |
The BareHTTP unit tests.
|
Java Source File Name | Type | Comment |
HTTPServer.java | Class | Implements a server that listens for incoming client connections
and services each with
HTTPSession instances. |
HTTPServerTest.java | Class | Tests the HTTPServer class by making use of
HTTPTestCase fixtures and issuing requests over a socket connection.
author: Daniel F. |
HTTPSession.java | Class | An HTTPSession executes an HTTP conversation via an InputStream and
OutputSream. |
HTTPSessionTest.java | Class | Tests the HTTPSession class by making use of
HTTPTestCase fixtures, issuing requests from a ByteInputStream, and storing the
replies in a ByteArrayOutputStream.
author: Daniel F. |
HTTPTestCase.java | Class | 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. |
Main.java | Class | The BareHTTP server, a sample program that starts an
HTTPServer instance. |
MainTest.java | Class | Tests the Main class by making use of
HTTPServerTest ,
calling Main.main to start a server instead of instantiating
HTTPServer.
author: Daniel F. |