public class CallBehaviour extends Behavior
evaluate(MuleSession, org.mule.runtime.api.event.Event) is deprecated, but the
InterceptingEventBuilder depends on it for session properties| 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(MuleSession, org.mule.runtime.api.event.Event). |
void |
evaluate(org.mule.runtime.core.privileged.event.MuleSession session,
org.mule.runtime.api.event.Event input)
Invoke the associated flow and store the event, to avoid invoking the flow more than once.
|
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.core.privileged.event.MuleSession session,
org.mule.runtime.api.event.Event input)
clearEvent() is invoked.session - the service session for the eventinput - the event that was intercepted during mockingorg.mule.munit.common.exception.MunitError - if ExecutableComponent.execute(org.mule.runtime.api.event.Event) failspublic void clearEvent()
evaluate(MuleSession, org.mule.runtime.api.event.Event). Has no effect if the method was not
called, or if the event was already cleared.Copyright © 2020. All rights reserved.