public class ProcessorMocker extends AbstractMockingTool
muleContext, processorAttributes, processorName, processorNamespace| Constructor and Description |
|---|
ProcessorMocker(org.mule.runtime.core.api.MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
ProcessorMocker |
ofNamespace(String namespace)
Defines the namespace of the processor to be mocked
|
void |
thenReturn(org.mule.munit.common.model.Event event)
Defines what
Event to return after the processor call |
void |
thenReturnSameEvent()
Determines that the mocked processor must return the same event as before its call.
|
ProcessorMocker |
when(String name)
Defines the name of the processor to be mocked
|
ProcessorMocker |
withAttributes(Map<String,Object> attributes)
Defines the attributes of the processor to be mocked
|
checkValidQuery, getFullName, getManagerpublic ProcessorMocker(org.mule.runtime.core.api.MuleContext muleContext)
public ProcessorMocker when(String name)
name - The name of the processor to be mockedpublic ProcessorMocker ofNamespace(String namespace)
namespace - The namespace of the processor to be mockedpublic ProcessorMocker withAttributes(Map<String,Object> attributes)
attributes - The attributes of the processor to be mockedpublic void thenReturn(org.mule.munit.common.model.Event event)
Event to return after the processor callevent - The Event to returnpublic void thenReturnSameEvent()
Copyright © 2017. All Rights Reserved.