org.mule.expression
Class MuleExpressionEvaluatorTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.expression.MuleExpressionEvaluatorTestCase
All Implemented Interfaces:
junit.framework.Test, TestCaseWatchdogTimeoutHandler

public class MuleExpressionEvaluatorTestCase
extends AbstractMuleTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
AbstractMuleTestCase.TestInfo
 
Field Summary
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, DEFAULT_MULE_TEST_TIMEOUT_SECS, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, numPorts, ports, PROPERTY_MULE_TEST_TIMEOUT, RECEIVE_TIMEOUT, TEST_MESSAGE, testTimeoutSecs
 
Constructor Summary
MuleExpressionEvaluatorTestCase()
           
 
Method Summary
protected  MuleMessage createMessageWithAttachments()
           
protected  void doSetUp()
          Exactly the same a AbstractMuleTestCase.setUp() in normal JUnit test cases.
 void testContextExpressions()
           
 void testContextExpressionsFromExtractorManager()
           
 void testGettingAllAttachments()
           
 void testGettingAllAttachmentsUsingManager()
           
 void testGettingAllHeaders()
           
 void testGettingAllHeadersUsingManager()
           
 void testListAttachments()
           
 void testListAttachmentsUsingManager()
           
 void testListHeaders()
           
 void testListHeadersUsingManager()
           
 void testMapAttachments()
           
 void testMapAttachmentsUsingManager()
           
 void testMapHeaders()
           
 void testMapHeadersUsingManager()
           
 void testMapPayloadUsingManager()
           
 void testMessagePayloadWithMoreComplexTransform()
           
 void testMessagePayloadWithMoreComplexTransformUsingManager()
           
 void testMessagePayloadWithNulls()
           
 void testMessagePayloadWithNullsUsingManager()
          Make sure the evaluator gets registered properly
 void testMessagePayloadWithTransform()
           
 void testMessagePayloadWithTransformUsingManager()
           
 void testMessagePropertiesUsingEvaluatorDirectly()
           
 void testMessagePropertiesUsingManager()
          Make sure the evaluator gets registered properly
 void testMissingEventContext()
           
 void testSimpleRegistryLookup()
           
 void testSimpleRegistryLookupUsingMAnager()
           
 void testSingleAttachment()
           
 void testSingleAttachmentUsingManager()
           
 void testSingleHeader()
           
 void testSingleHeaderUsingManager()
           
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
addBuilders, checkPorts, configureMuleContext, createMuleContext, createObject, createObject, createTestInfo, createWatchdog, disposeManager, doTearDown, findFreePorts, getBuilder, getConfigurationResources, getPorts, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInboundEvent, getTestInboundEvent, getTestInfo, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTimeoutSecs, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, giveTheTestSomeTimeToCleanUpAndThenKillIt, handleTimeout, initialiseObject, initTestTimeoutSecs, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isGracefulShutdown, isOffline, isPortFree, isStartContext, registerTestMethod, run, runBare, setDisposeManagerPerSuite, setFailOnTimeout, setName, setStartContext, setUp, suitePostTearDown, suitePreSetUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, runTest, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MuleExpressionEvaluatorTestCase

public MuleExpressionEvaluatorTestCase()
Method Detail

doSetUp

protected void doSetUp()
                throws java.lang.Exception
Description copied from class: AbstractMuleTestCase
Exactly the same a AbstractMuleTestCase.setUp() in normal JUnit test cases. this is called before a test method has been called.

Overrides:
doSetUp in class AbstractMuleTestCase
Throws:
java.lang.Exception - if something fails that should halt the testcase

createMessageWithAttachments

protected MuleMessage createMessageWithAttachments()

testSingleAttachment

public void testSingleAttachment()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testMapAttachments

public void testMapAttachments()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testListAttachments

public void testListAttachments()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testSingleAttachmentUsingManager

public void testSingleAttachmentUsingManager()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testMapAttachmentsUsingManager

public void testMapAttachmentsUsingManager()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testListAttachmentsUsingManager

public void testListAttachmentsUsingManager()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testGettingAllAttachments

public void testGettingAllAttachments()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testGettingAllAttachmentsUsingManager

public void testGettingAllAttachmentsUsingManager()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testSingleHeader

public void testSingleHeader()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testMapHeaders

public void testMapHeaders()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testListHeaders

public void testListHeaders()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testGettingAllHeaders

public void testGettingAllHeaders()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testGettingAllHeadersUsingManager

public void testGettingAllHeadersUsingManager()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testSingleHeaderUsingManager

public void testSingleHeaderUsingManager()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testMapHeadersUsingManager

public void testMapHeadersUsingManager()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testListHeadersUsingManager

public void testListHeadersUsingManager()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testContextExpressions

public void testContextExpressions()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testContextExpressionsFromExtractorManager

public void testContextExpressionsFromExtractorManager()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testMissingEventContext

public void testMissingEventContext()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testMessagePropertiesUsingEvaluatorDirectly

public void testMessagePropertiesUsingEvaluatorDirectly()
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

testMessagePropertiesUsingManager

public void testMessagePropertiesUsingManager()
                                       throws java.lang.Exception
Make sure the evaluator gets registered properly

Throws:
java.lang.Exception - if the test fails

testMessagePayloadWithNulls

public void testMessagePayloadWithNulls()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testMessagePayloadWithNullsUsingManager

public void testMessagePayloadWithNullsUsingManager()
                                             throws java.lang.Exception
Make sure the evaluator gets registered properly

Throws:
java.lang.Exception - if the test fails

testMessagePayloadWithTransform

public void testMessagePayloadWithTransform()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testMessagePayloadWithTransformUsingManager

public void testMessagePayloadWithTransformUsingManager()
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

testMessagePayloadWithMoreComplexTransform

public void testMessagePayloadWithMoreComplexTransform()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testMessagePayloadWithMoreComplexTransformUsingManager

public void testMessagePayloadWithMoreComplexTransformUsingManager()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

testMapPayloadUsingManager

public void testMapPayloadUsingManager()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testSimpleRegistryLookup

public void testSimpleRegistryLookup()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testSimpleRegistryLookupUsingMAnager

public void testSimpleRegistryLookupUsingMAnager()
                                          throws java.lang.Exception
Throws:
java.lang.Exception


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