Search in sources :

Example 1 with AbstractMessageProcessingTransformer

use of org.springframework.integration.transformer.AbstractMessageProcessingTransformer in project spring-integration by spring-projects.

the class GroovyTransformerTests method testInt2433VerifyRiddingOfMessageProcessorsWrapping.

@Test
public void testInt2433VerifyRiddingOfMessageProcessorsWrapping() {
    assertTrue(this.groovyTransformerMessageHandler instanceof MessageTransformingHandler);
    Transformer transformer = TestUtils.getPropertyValue(this.groovyTransformerMessageHandler, "transformer", Transformer.class);
    assertTrue(transformer instanceof AbstractMessageProcessingTransformer);
    @SuppressWarnings("rawtypes") MessageProcessor messageProcessor = TestUtils.getPropertyValue(transformer, "messageProcessor", MessageProcessor.class);
    // before it was MethodInvokingMessageProcessor
    assertTrue(messageProcessor instanceof GroovyScriptExecutingMessageProcessor);
}
Also used : AbstractMessageProcessingTransformer(org.springframework.integration.transformer.AbstractMessageProcessingTransformer) MessageTransformingHandler(org.springframework.integration.transformer.MessageTransformingHandler) Transformer(org.springframework.integration.transformer.Transformer) AbstractMessageProcessingTransformer(org.springframework.integration.transformer.AbstractMessageProcessingTransformer) MessageProcessor(org.springframework.integration.handler.MessageProcessor) GroovyScriptExecutingMessageProcessor(org.springframework.integration.groovy.GroovyScriptExecutingMessageProcessor) GroovyScriptExecutingMessageProcessor(org.springframework.integration.groovy.GroovyScriptExecutingMessageProcessor) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 GroovyScriptExecutingMessageProcessor (org.springframework.integration.groovy.GroovyScriptExecutingMessageProcessor)1 MessageProcessor (org.springframework.integration.handler.MessageProcessor)1 AbstractMessageProcessingTransformer (org.springframework.integration.transformer.AbstractMessageProcessingTransformer)1 MessageTransformingHandler (org.springframework.integration.transformer.MessageTransformingHandler)1 Transformer (org.springframework.integration.transformer.Transformer)1