use of org.apache.synapse.message.processor.impl.sampler.SamplingProcessor in project wso2-synapse by wso2.
the class MessageProcessorSerializerTest method testSerializeMessageProcessor2.
/**
* test serializeMessageProcessor and assert the OMElement is created.
*/
@Test
public void testSerializeMessageProcessor2() {
MessageProcessor messageProcessor = new SamplingProcessor();
messageProcessor.setName("testStore");
OMElement element = MessageProcessorSerializer.serializeMessageProcessor(null, messageProcessor);
Assert.assertNotNull("OMElement is not returned", element);
}
use of org.apache.synapse.message.processor.impl.sampler.SamplingProcessor in project wso2-synapse by wso2.
the class MessageProcessorSerializerTest method testSerializeMessageProcessor.
/**
* test serializeMessageProcessor with no Message store name.
*/
@Test(expected = SynapseException.class)
public void testSerializeMessageProcessor() {
MessageProcessor messageProcessor = new SamplingProcessor();
MessageProcessorSerializer.serializeMessageProcessor(null, messageProcessor);
}
Aggregations