use of org.apache.synapse.message.processor.impl.forwarder.ScheduledMessageForwardingProcessor in project wso2-synapse by wso2.
the class MessageProcessorSerializerTest method testSerializeMessageProcessor3.
/**
* test serializeMessageProcessor with parameters and assert the OMElement is created.
*/
@Test
public void testSerializeMessageProcessor3() {
Map<String, Object> parameters = new HashMap<>();
MessageProcessor messageProcessor = new ScheduledMessageForwardingProcessor();
messageProcessor.setName("testStore");
parameters.put("interval", "1000");
messageProcessor.setParameters(parameters);
messageProcessor.setDescription("testMessageProcessor");
messageProcessor.setTargetEndpoint("target");
messageProcessor.setMessageStoreName("testMessageStore");
OMElement element = MessageProcessorSerializer.serializeMessageProcessor(null, messageProcessor);
Assert.assertNotNull("OMElement is not returned", element);
}
Aggregations