public class CallBehaviour extends Behavior
| Constructor and Description |
|---|
CallBehaviour(org.mule.munit.common.behavior.ProcessorCall processorCall,
org.mule.runtime.core.api.construct.Flow flow)
Create a behaviour for calling a flow when mocking a processor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearEvent()
Clear the event set in
evaluate(Event). |
void |
evaluate(org.mule.runtime.api.event.Event input)
Invoke the associated flow and store the event, to avoid invoking the flow more than once.
|
Optional<org.mule.munit.common.model.Event> |
getInput() |
getEvent, getProcessorCall, setEventpublic CallBehaviour(org.mule.munit.common.behavior.ProcessorCall processorCall,
org.mule.runtime.core.api.construct.Flow flow)
processorCall - the processor call to be mockedflow - the Flow that will be usedpublic void evaluate(org.mule.runtime.api.event.Event input)
throws org.mule.munit.common.exception.MunitError
clearEvent() is invoked.input - the event that was intercepted during mockingorg.mule.munit.common.exception.MunitError - if ExecutableComponent.execute(Event) failspublic void clearEvent()
evaluate(Event). Has no effect if the method was not called, or if the event was already
cleared.public Optional<org.mule.munit.common.model.Event> getInput()
Copyright © 2020. All rights reserved.