org.mule.transport.http.functional
Class StaticResourcesMPFunctionalTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.tck.junit4.AbstractMuleContextTestCase
          extended by org.mule.tck.junit4.FunctionalTestCase
              extended by org.mule.transport.http.functional.StaticResourcesMPFunctionalTestCase

public class StaticResourcesMPFunctionalTestCase
extends FunctionalTestCase


Field Summary
static DynamicPort port1
           
static DynamicPort port2
           
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY
 
Constructor Summary
StaticResourcesMPFunctionalTestCase()
           
 
Method Summary
 void contentTypeForDefaultResourceShouldBeTextHtml()
           
 void contentTypeShouldBeDetermintedFromResource()
           
 void explicitMimeTypeConfigurationShouldOverrideDefaults()
           
protected  String getConfigResources()
           
 void httpsUrlRequestingExplicitResourceShouldReturnResource()
           
 void httpsUrlRequestingNonexistentResourceShouldReturnNotFoundStatus()
           
 void httpsUrlWithoutExplicitResourceShouldReturnDefaultDocument()
           
 void httpUrlRequestingExplicitResourceShouldReturnResource()
           
 void httpUrlRequestingNonexistentResourceShouldReturnNotFoundStatus()
           
 void httpUrlWithoutExplicitResourceShouldReturnDefaultDocument()
           
 void testFlowBindingOnSamePort()
          Test that endpoints bound to the same http port but different path work with the static resource MP
 
Methods inherited from class org.mule.tck.junit4.FunctionalTestCase
clearFlowAssertions, getBuilder, getComponent, getComponent, getFlowConstruct, getFunctionalTestComponent, loadResource, loadResourceAsString, stopFlowConstruct, testFlow, testFlow
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUp, doTearDown, 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
 

Field Detail

port1

public static DynamicPort port1

port2

public static DynamicPort port2
Constructor Detail

StaticResourcesMPFunctionalTestCase

public StaticResourcesMPFunctionalTestCase()
Method Detail

getConfigResources

protected String getConfigResources()
Specified by:
getConfigResources in class FunctionalTestCase

httpUrlWithoutExplicitResourceShouldReturnDefaultDocument

public void httpUrlWithoutExplicitResourceShouldReturnDefaultDocument()
                                                               throws Exception
Throws:
Exception

httpUrlRequestingExplicitResourceShouldReturnResource

public void httpUrlRequestingExplicitResourceShouldReturnResource()
                                                           throws Exception
Throws:
Exception

httpUrlRequestingNonexistentResourceShouldReturnNotFoundStatus

public void httpUrlRequestingNonexistentResourceShouldReturnNotFoundStatus()
                                                                    throws Exception
Throws:
Exception

contentTypeForDefaultResourceShouldBeTextHtml

public void contentTypeForDefaultResourceShouldBeTextHtml()
                                                   throws Exception
Throws:
Exception

contentTypeShouldBeDetermintedFromResource

public void contentTypeShouldBeDetermintedFromResource()
                                                throws Exception
Throws:
Exception

explicitMimeTypeConfigurationShouldOverrideDefaults

public void explicitMimeTypeConfigurationShouldOverrideDefaults()
                                                         throws Exception
Throws:
Exception

httpsUrlWithoutExplicitResourceShouldReturnDefaultDocument

public void httpsUrlWithoutExplicitResourceShouldReturnDefaultDocument()
                                                                throws Exception
Throws:
Exception

httpsUrlRequestingExplicitResourceShouldReturnResource

public void httpsUrlRequestingExplicitResourceShouldReturnResource()
                                                            throws Exception
Throws:
Exception

httpsUrlRequestingNonexistentResourceShouldReturnNotFoundStatus

public void httpsUrlRequestingNonexistentResourceShouldReturnNotFoundStatus()
                                                                     throws Exception
Throws:
Exception

testFlowBindingOnSamePort

public void testFlowBindingOnSamePort()
                               throws Exception
Test that endpoints bound to the same http port but different path work with the static resource MP

Throws:
Exception


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.