org.mule.el.function
Class RegexExpressionLanguageFunctionTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.el.function.RegexExpressionLanguageFunctionTestCase

public class RegexExpressionLanguageFunctionTestCase
extends AbstractMuleTestCase


Field Summary
protected  MVELExpressionLanguageContext context
           
protected  ExpressionExecutor<MVELExpressionLanguageContext> expressionExecutor
           
protected  RegexExpressionLanguageFuntion regexFuntion
           
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY
 
Constructor Summary
RegexExpressionLanguageFunctionTestCase()
           
 
Method Summary
protected  void addMessageToContextWithPayload(String payload)
           
 void setup()
           
 void testInvalidNonIntFlags()
           
 void testInvalidNonIntFlagsMVEL()
           
 void testInvalidNonStringRegex()
           
 void testInvalidNonStringRegexMVEL()
           
 void testInvalidNonStringText()
           
 void testInvalidNonStringTextMVEL()
           
 void testInvalidNullRegex()
           
 void testInvalidNullRegexMVEL()
           
 void testInvalidNullText()
           
 void testInvalidNullTextMVEL()
           
 void testReturnNullWhenDoesNotMatches()
           
 void testReturnNullWhenDoesNotMatchesMVEL()
           
 void testReturnsMatchedValueIfCaptureGroupDefined()
           
 void testReturnsMatchedValueIfCaptureGroupDefinedMVEL()
           
 void testReturnsMultipleValuesIfMultipleCaptureGroupDefine()
           
 void testReturnsMultipleValuesIfMultipleCaptureGroupDefineMVEL()
           
 void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefined()
           
 void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedMVEL()
           
 void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextAndFlagsArgument()
           
 void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextAndFlagsArgumentMVEL()
           
 void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextArgument()
           
 void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextArgumentMVEL()
           
 
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

expressionExecutor

protected ExpressionExecutor<MVELExpressionLanguageContext> expressionExecutor

context

protected MVELExpressionLanguageContext context

regexFuntion

protected RegexExpressionLanguageFuntion regexFuntion
Constructor Detail

RegexExpressionLanguageFunctionTestCase

public RegexExpressionLanguageFunctionTestCase()
Method Detail

setup

public void setup()
           throws InitialisationException
Throws:
InitialisationException

testReturnNullWhenDoesNotMatches

public void testReturnNullWhenDoesNotMatches()
                                      throws Exception
Throws:
Exception

testReturnNullWhenDoesNotMatchesMVEL

public void testReturnNullWhenDoesNotMatchesMVEL()
                                          throws Exception
Throws:
Exception

testReturnsPayloadWhenMatchesIfNoCaptureGroupDefined

public void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefined()
                                                          throws Exception
Throws:
Exception

testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedMVEL

public void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedMVEL()
                                                              throws Exception
Throws:
Exception

testReturnsMatchedValueIfCaptureGroupDefined

public void testReturnsMatchedValueIfCaptureGroupDefined()
                                                  throws Exception
Throws:
Exception

testReturnsMatchedValueIfCaptureGroupDefinedMVEL

public void testReturnsMatchedValueIfCaptureGroupDefinedMVEL()
                                                      throws Exception
Throws:
Exception

testReturnsMultipleValuesIfMultipleCaptureGroupDefine

public void testReturnsMultipleValuesIfMultipleCaptureGroupDefine()
                                                           throws Exception
Throws:
Exception

testReturnsMultipleValuesIfMultipleCaptureGroupDefineMVEL

public void testReturnsMultipleValuesIfMultipleCaptureGroupDefineMVEL()
                                                               throws Exception
Throws:
Exception

testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextArgument

public void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextArgument()
                                                                      throws Exception
Throws:
Exception

testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextArgumentMVEL

public void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextArgumentMVEL()
                                                                          throws Exception
Throws:
Exception

testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextAndFlagsArgument

public void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextAndFlagsArgument()
                                                                              throws Exception
Throws:
Exception

testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextAndFlagsArgumentMVEL

public void testReturnsPayloadWhenMatchesIfNoCaptureGroupDefinedTextAndFlagsArgumentMVEL()
                                                                                  throws Exception
Throws:
Exception

testInvalidNullRegex

public void testInvalidNullRegex()
                          throws Exception
Throws:
Exception

testInvalidNullRegexMVEL

public void testInvalidNullRegexMVEL()
                              throws Exception
Throws:
Exception

testInvalidNonStringRegex

public void testInvalidNonStringRegex()
                               throws Exception
Throws:
Exception

testInvalidNonStringRegexMVEL

public void testInvalidNonStringRegexMVEL()
                                   throws Exception
Throws:
Exception

testInvalidNullText

public void testInvalidNullText()
                         throws Exception
Throws:
Exception

testInvalidNullTextMVEL

public void testInvalidNullTextMVEL()
                             throws Exception
Throws:
Exception

testInvalidNonStringText

public void testInvalidNonStringText()
                              throws Exception
Throws:
Exception

testInvalidNonStringTextMVEL

public void testInvalidNonStringTextMVEL()
                                  throws Exception
Throws:
Exception

testInvalidNonIntFlags

public void testInvalidNonIntFlags()
                            throws Exception
Throws:
Exception

testInvalidNonIntFlagsMVEL

public void testInvalidNonIntFlagsMVEL()
                                throws Exception
Throws:
Exception

addMessageToContextWithPayload

protected void addMessageToContextWithPayload(String payload)
                                       throws TransformerException
Throws:
TransformerException


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