net.groboclown.util.http.v1.tests
Class BaseTestHttp

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--net.groboclown.junit.v1.MultiThreadedTestCase
                    |
                    +--net.groboclown.util.http.v1.tests.BaseTestHttp
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TestCookie, TestHttpClientStateUtil, TestHttpResponseMessageImpl, TestNetscapeCookieParser, TestRfc2109CookieParser, TestSimpleHttpGet

public class BaseTestHttp
extends MultiThreadedTestCase


Inner Class Summary
private  class BaseTestHttp.ConnectionRunner
           
 
Inner classes inherited from class net.groboclown.junit.v1.MultiThreadedTestCase
MultiThreadedTestCase.StopThreadsTest, MultiThreadedTestCase.TestCaseRunnable
 
Field Summary
protected static String TEST_PAGE_1
           
protected static String TEST_PAGE_1_CONTENTS
           
protected static String TEST_SITE
           
 
Fields inherited from class net.groboclown.junit.v1.MultiThreadedTestCase
m_synch, m_testResult, m_threadGroup, m_threadsFinished
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
BaseTestHttp(String name)
           
 
Method Summary
protected  void assertMessageCompareEquals(byte[] found, byte[] test)
           
protected  IHttpResponseMessage openThreadedConnection(SimpleHttpGet shg, URL url)
           
protected  IHttpResponseMessage openThreadedConnection(SimpleHttpGet shg, URL url, String method, Hashtable headers, String messageData)
           
protected  byte[] openThreadedConnectionByte(SimpleHttpGet shg, URL url)
           
protected  void setUp()
           
protected  void tearDown()
           
protected  byte[] trim(byte[] b)
           
 
Methods inherited from class net.groboclown.junit.v1.MultiThreadedTestCase
handleException, interruptThreads, run, runTestCaseRunnables, runTestCaseRunnables
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, runBare, runTest, setName, 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, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

TEST_SITE

protected static final String TEST_SITE

TEST_PAGE_1

protected static final String TEST_PAGE_1

TEST_PAGE_1_CONTENTS

protected static final String TEST_PAGE_1_CONTENTS
Constructor Detail

BaseTestHttp

public BaseTestHttp(String name)
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase

assertMessageCompareEquals

protected void assertMessageCompareEquals(byte[] found,
                                          byte[] test)

trim

protected byte[] trim(byte[] b)

openThreadedConnection

protected IHttpResponseMessage openThreadedConnection(SimpleHttpGet shg,
                                                      URL url)

openThreadedConnectionByte

protected byte[] openThreadedConnectionByte(SimpleHttpGet shg,
                                            URL url)

openThreadedConnection

protected IHttpResponseMessage openThreadedConnection(SimpleHttpGet shg,
                                                      URL url,
                                                      String method,
                                                      Hashtable headers,
                                                      String messageData)


Written under the LGPL