org.jcoderz.commons.connector.http
Class HttpConnectorBeanTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jcoderz.commons.TestCase
              extended by org.jcoderz.commons.connector.http.HttpConnectorBeanTest
All Implemented Interfaces:
Test

public class HttpConnectorBeanTest
extends TestCase

JUnit remote (bean) tests for the commons http connector.


Constructor Summary
HttpConnectorBeanTest()
           
 
Method Summary
protected  void setUp()
          
static Test suite()
          Creates the testsuite.
protected  void tearDown()
           
 void testConnectingSimpleServer()
          Tests a simple connection to the simple server started whilst setup.
 void testConnectingSimpleServerWithEmptyResponseBody()
          Tests a connection to the simple server started whilst setup with an empty message body received in response.
 void testConnectingSimpleServerWithExpectedResponseHeaderFailed()
          Tests a connection to the simple server started whilst setup including a header to validate a parameter in response.
 void testConnectingSimpleServerWithExpectedResponseHeaderSuccess()
          Tests a connection to the simple server started whilst setup including a header to set and an expected header in response.
 void testConnectingSimpleServerWithTimeout()
          Tests a timeout whilst waiting for a response from the simple server.
 void testConnectingSubwayCA()
          Tests a simple connection to the subwayca.
 
Methods inherited from class org.jcoderz.commons.TestCase
getBaseDir, getHostName, getSuite, hasTestCases
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpConnectorBeanTest

public HttpConnectorBeanTest()
Method Detail

suite

public static Test suite()
Creates the testsuite.

Returns:
Test the testsuite

setUp

protected void setUp()
              throws Exception

Overrides:
setUp in class TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class TestCase
Throws:
Exception

testConnectingSubwayCA

public void testConnectingSubwayCA()
                            throws Exception
Tests a simple connection to the subwayca.

Throws:
Exception - in case of any error

testConnectingSimpleServer

public void testConnectingSimpleServer()
                                throws Exception
Tests a simple connection to the simple server started whilst setup.

Throws:
Exception - in case of any error

testConnectingSimpleServerWithExpectedResponseHeaderSuccess

public void testConnectingSimpleServerWithExpectedResponseHeaderSuccess()
                                                                 throws Exception
Tests a connection to the simple server started whilst setup including a header to set and an expected header in response.

Throws:
Exception - in case of any error

testConnectingSimpleServerWithExpectedResponseHeaderFailed

public void testConnectingSimpleServerWithExpectedResponseHeaderFailed()
                                                                throws Exception
Tests a connection to the simple server started whilst setup including a header to validate a parameter in response. The parameter to validate failed.

Throws:
Exception - in case of any error

testConnectingSimpleServerWithEmptyResponseBody

public void testConnectingSimpleServerWithEmptyResponseBody()
                                                     throws Exception
Tests a connection to the simple server started whilst setup with an empty message body received in response.

Throws:
Exception - in case of any error

testConnectingSimpleServerWithTimeout

public void testConnectingSimpleServerWithTimeout()
                                           throws Exception
Tests a timeout whilst waiting for a response from the simple server.

Throws:
Exception - in case of any error


Copyright 2007 The jCoderZ Project.