org.mockserver.integration.proxy
Class AbstractClientProxyIntegrationTest

java.lang.Object
  extended by org.mockserver.integration.proxy.AbstractClientProxyIntegrationTest

public abstract class AbstractClientProxyIntegrationTest
extends Object

Author:
jamesdbloom

Field Summary
protected static String servletContext
           
 
Constructor Summary
AbstractClientProxyIntegrationTest()
           
 
Method Summary
protected  String calculatePath(String path)
           
protected  org.apache.http.client.HttpClient createHttpClient()
           
abstract  ProxyClient getProxyClient()
           
abstract  int getProxyPort()
           
abstract  int getServerPort()
           
 void shouldClearRequests()
           
 void shouldForwardRequestsToUnknownPath()
           
 void shouldForwardRequestsUsingHttpClient()
           
 void shouldForwardRequestsUsingSocketDirectly()
           
 void shouldForwardRequestsWithComplexCookies()
           
 void shouldResetRequests()
           
 void shouldVerifyNoRequestsExactly()
           
 void shouldVerifyNoRequestsTimesNotSpecified()
           
 void shouldVerifyNotEnoughRequests()
           
 void shouldVerifyRequests()
           
 void shouldVerifyZeroRequests()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servletContext

protected static String servletContext
Constructor Detail

AbstractClientProxyIntegrationTest

public AbstractClientProxyIntegrationTest()
Method Detail

createHttpClient

protected org.apache.http.client.HttpClient createHttpClient()
                                                      throws Exception
Throws:
Exception

getProxyPort

public abstract int getProxyPort()

getProxyClient

public abstract ProxyClient getProxyClient()

getServerPort

public abstract int getServerPort()

calculatePath

protected String calculatePath(String path)

shouldForwardRequestsUsingSocketDirectly

public void shouldForwardRequestsUsingSocketDirectly()
                                              throws Exception
Throws:
Exception

shouldForwardRequestsUsingHttpClient

public void shouldForwardRequestsUsingHttpClient()
                                          throws Exception
Throws:
Exception

shouldForwardRequestsWithComplexCookies

public void shouldForwardRequestsWithComplexCookies()
                                             throws Exception
Throws:
Exception

shouldForwardRequestsToUnknownPath

public void shouldForwardRequestsToUnknownPath()
                                        throws Exception
Throws:
Exception

shouldVerifyRequests

public void shouldVerifyRequests()
                          throws Exception
Throws:
Exception

shouldVerifyZeroRequests

public void shouldVerifyZeroRequests()
                              throws Exception
Throws:
Exception

shouldVerifyNoRequestsExactly

public void shouldVerifyNoRequestsExactly()
                                   throws Exception
Throws:
Exception

shouldVerifyNoRequestsTimesNotSpecified

public void shouldVerifyNoRequestsTimesNotSpecified()
                                             throws Exception
Throws:
Exception

shouldVerifyNotEnoughRequests

public void shouldVerifyNotEnoughRequests()
                                   throws Exception
Throws:
Exception

shouldClearRequests

public void shouldClearRequests()
                         throws Exception
Throws:
Exception

shouldResetRequests

public void shouldResetRequests()
                         throws Exception
Throws:
Exception


Copyright © 2016. All rights reserved.