org.mule.transport.http.functional
Class HttpsHandshakeTimingTestCase
java.lang.Object
org.mule.tck.junit4.AbstractMuleTestCase
org.mule.tck.junit4.AbstractMuleContextTestCase
org.mule.transport.http.functional.HttpsHandshakeTimingTestCase
public class HttpsHandshakeTimingTestCase
- extends AbstractMuleContextTestCase
Test for SSL handshake timeouts. Unfortunately, there is no easy way to blackbox-test this
as it would require a SSLSocket implementation that could actually add arbitrary delays to
the SSL handshake.
The approach chosen here is based on reflection and massive subclassing/stubbing to make things
work. Yes, this is hacky and fragile but this seems to be the only reasonable alternative
for now.
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase |
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doTearDown, getBuilder, getConfigurationResources, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext |
Methods inherited from class org.mule.tck.junit4.AbstractMuleTestCase |
clearExcludedFlag, clearRequestContext, createTestTimeoutRule, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpsHandshakeTimingTestCase
public HttpsHandshakeTimingTestCase()
testHttpsHandshakeExceedsTimeout
public void testHttpsHandshakeExceedsTimeout()
throws Exception
- Throws:
Exception
testHttpsHandshakeCompletesBeforeProcessingMessage
public void testHttpsHandshakeCompletesBeforeProcessingMessage()
throws Exception
- Throws:
Exception
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.