org.mule.routing.filters
Class OGNLFilterTestCase

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.routing.filters.OGNLFilterTestCase

public class OGNLFilterTestCase
extends FunctionalTestCase


Field Summary
static String DEFAULT_INPUT_QUEUE
           
static String DEFUALT_OUTPUT_QUEUE
           
static String FIRST_MESSAGE
           
static String OGNL_EXSPRESSION
           
static String SECOND_MESSAGE
           
static String SERVICE_NAME
           
static String THIRD_MESSAGE
           
static long TIMEOUT
           
 
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
OGNLFilterTestCase()
           
 
Method Summary
protected  void doSetUp()
          Enables the adding of extra behavior on the set up stage of a test right after the creation of the mule context in AbstractMuleContextTestCase.setUpMuleContext().
protected  void doTearDown()
          Enables the adding of extra behavior on the tear down stage of a test before the mule context is disposed in AbstractMuleContextTestCase.disposeContextPerTest().
protected  String getConfigResources()
           
 void testFunctionalTest()
           
 void testFunctionalTestUsingExpressionFilter()
           
 void testInvalidObjectExpression()
           
 void testNamespaceHandler()
           
 void testNewFilter()
           
 void testNoExpressionEmptyMessage()
           
 void testNoExpressionValidMessage()
           
 
Methods inherited from class org.mule.tck.junit4.FunctionalTestCase
getBuilder, getComponent, getComponent, getFlowConstruct, getFunctionalTestComponent, loadResource, loadResourceAsString, testFlow, testFlow
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, getConfigurationResources, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInboundEvent, getTestInboundEvent, 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

DEFAULT_INPUT_QUEUE

public static final String DEFAULT_INPUT_QUEUE
See Also:
Constant Field Values

DEFUALT_OUTPUT_QUEUE

public static final String DEFUALT_OUTPUT_QUEUE
See Also:
Constant Field Values

FIRST_MESSAGE

public static final String FIRST_MESSAGE
See Also:
Constant Field Values

SECOND_MESSAGE

public static final String SECOND_MESSAGE
See Also:
Constant Field Values

THIRD_MESSAGE

public static final String THIRD_MESSAGE
See Also:
Constant Field Values

TIMEOUT

public static final long TIMEOUT
See Also:
Constant Field Values

OGNL_EXSPRESSION

public static final String OGNL_EXSPRESSION
See Also:
Constant Field Values

SERVICE_NAME

public static final String SERVICE_NAME
See Also:
Constant Field Values
Constructor Detail

OGNLFilterTestCase

public OGNLFilterTestCase()
Method Detail

getConfigResources

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

doSetUp

protected void doSetUp()
                throws Exception
Description copied from class: AbstractMuleContextTestCase
Enables the adding of extra behavior on the set up stage of a test right after the creation of the mule context in AbstractMuleContextTestCase.setUpMuleContext().

Under normal circumstances this method could be replace with a @Before annotated method.

Overrides:
doSetUp in class AbstractMuleContextTestCase
Throws:
Exception - if something fails that should halt the test case

doTearDown

protected void doTearDown()
                   throws Exception
Description copied from class: AbstractMuleContextTestCase
Enables the adding of extra behavior on the tear down stage of a test before the mule context is disposed in AbstractMuleContextTestCase.disposeContextPerTest().

Under normal circumstances this method could be replace with a @After annotated method.

Overrides:
doTearDown in class AbstractMuleContextTestCase
Throws:
Exception - if something fails that should halt the testcase

testNewFilter

public void testNewFilter()

testNoExpressionEmptyMessage

public void testNoExpressionEmptyMessage()

testNoExpressionValidMessage

public void testNoExpressionValidMessage()

testNamespaceHandler

public void testNamespaceHandler()

testFunctionalTest

public void testFunctionalTest()
                        throws Exception
Throws:
Exception

testFunctionalTestUsingExpressionFilter

public void testFunctionalTestUsingExpressionFilter()
                                             throws Exception
Throws:
Exception

testInvalidObjectExpression

public void testInvalidObjectExpression()


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