Class LanguageTestSupport


  • @Deprecated
    public abstract class LanguageTestSupport
    extends ExchangeTestSupport
    Deprecated.
    A useful base class for testing the language plugins in Camel
    • Constructor Detail

      • LanguageTestSupport

        public LanguageTestSupport()
        Deprecated.
    • Method Detail

      • getLanguageName

        protected abstract String getLanguageName()
        Deprecated.
      • assertPredicate

        protected void assertPredicate​(String expression)
        Deprecated.
        Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to true
      • assertPredicateFails

        protected void assertPredicateFails​(String expression)
        Deprecated.
        Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to false
      • assertPredicate

        protected void assertPredicate​(String expression,
                                       boolean expected)
        Deprecated.
        Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to the expected value
      • assertPredicate

        protected void assertPredicate​(org.apache.camel.Exchange exchange,
                                       String expression,
                                       boolean expected)
        Deprecated.
      • assertExpression

        protected void assertExpression​(org.apache.camel.Exchange exchange,
                                        String expressionText,
                                        Object expectedValue)
        Deprecated.
        Asserts that this language expression evaluates to the given value on the given exchange
      • assertExpression

        protected void assertExpression​(String expressionText,
                                        Object expectedValue)
        Deprecated.
        Asserts that this language expression evaluates to the given value on the current exchange
      • assertExpression

        protected void assertExpression​(String expressionText,
                                        String expectedValue,
                                        String orThisExpectedValue)
        Deprecated.
        Asserts that the expression evaluates to one of the two given values