public class

MPMockModule

extends Object
implements MuleContextAware BeanFactoryPostProcessor
java.lang.Object
   ↳ org.mule.munit.MPMockModule
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Module to mock message processors.

Summary

Fields
private List<NestedProcessor> assertion
private MuleContext context
private String of

Component that we want to mock.

private Object response
Public Constructors
MPMockModule()
Public Methods
void assertPayload(List<NestedProcessor> assertion)

Define the assert process when the message processor is called

List<NestedProcessor> getAssertion()
Object getResponse()
void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
void respond(Object response)

Define what has to be returned when the message processor is called.

void setMuleContext(MuleContext context)
void setOf(String of)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.api.context.MuleContextAware
From interface org.springframework.beans.factory.config.BeanFactoryPostProcessor

Fields

private List<NestedProcessor> assertion

private MuleContext context

private String of

Component that we want to mock.

private Object response

Public Constructors

public MPMockModule ()

Public Methods

public void assertPayload (List<NestedProcessor> assertion)

Define the assert process when the message processor is called

Parameters
assertion The assertion process

public List<NestedProcessor> getAssertion ()

public Object getResponse ()

public void postProcessBeanFactory (ConfigurableListableBeanFactory beanFactory)

Parameters
beanFactory
Throws
BeansException

public void respond (Object response)

Define what has to be returned when the message processor is called.

Parameters
response The response that has be returned

public void setMuleContext (MuleContext context)

Parameters
context

public void setOf (String of)

Parameters
of