public class HttpServerConnectionTestCase extends AbstractMuleContextTestCase
Modifier and Type | Field and Description |
---|---|
DynamicPort |
port1 |
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE, TEST_PAYLOAD, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectory
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME
Constructor and Description |
---|
HttpServerConnectionTestCase() |
Modifier and Type | Method and Description |
---|---|
void |
createHttpServerConnectionWithHttpConnectorProperties()
Tests the correct propagation of
HttpConnector properties to the HttpServerConnection (MULE-6884). |
void |
createHttpServerConnectionWithSocketAndFailForHandshakeLatch() |
void |
createHttpServerConnectionWithSocketAndFailForLocalCertificates() |
void |
createHttpServerConnectionWithSocketAndFailForPeerCertificates() |
void |
createHttpServerConnectionWithSslSocket() |
void |
getRemoteSocketAddress() |
void |
getRemoteSocketAddressWithNullSocketAddress() |
void |
getUrlWithoutRequestParams() |
void |
inputStreamIsWrappedWithBufferedInputStream() |
void |
resetClosesRequestBody() |
void |
resetConnectionReadNextRequest() |
void |
writeFailureResponseWithEmptyParams() |
void |
writeFailureResponseWithNullParams() |
void |
writeFailureResponseWithParams() |
void |
writeResponseWithEmptyParams() |
void |
writeResponseWithNullParams() |
void |
writeResponseWithParams() |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, getBuilder, getConfigurationResources, getFileInsideWorkingDirectory, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestMuleMessage, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
clearExcludedFlag, clearRequestContext, clearTestCaseName, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
public DynamicPort port1
public void createHttpServerConnectionWithSslSocket() throws IOException
IOException
public void inputStreamIsWrappedWithBufferedInputStream() throws Exception
Exception
public void createHttpServerConnectionWithSocketAndFailForLocalCertificates() throws Exception
Exception
public void createHttpServerConnectionWithSocketAndFailForPeerCertificates() throws Exception
Exception
public void createHttpServerConnectionWithSocketAndFailForHandshakeLatch() throws Exception
Exception
public void resetConnectionReadNextRequest() throws Exception
Exception
public void getRemoteSocketAddressWithNullSocketAddress() throws Exception
Exception
public void getUrlWithoutRequestParams() throws Exception
Exception
public void writeResponseWithNullParams() throws Exception
Exception
public void writeResponseWithEmptyParams() throws Exception
Exception
public void writeFailureResponseWithNullParams() throws Exception
Exception
public void writeFailureResponseWithEmptyParams() throws Exception
Exception
public void writeFailureResponseWithParams() throws Exception
Exception
public void createHttpServerConnectionWithHttpConnectorProperties() throws Exception
HttpConnector
properties to the HttpServerConnection
(MULE-6884).
Unfortunately we can't use a mocked HTTP connector and a mocked socket for this test, so we need to use real ones.Exception
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.