Search in sources :

Example 1 with DefaultExecutionContext

use of org.mule.runtime.module.extension.internal.runtime.DefaultExecutionContext in project mule by mulesoft.

the class ReflectiveMethodOperationExecutorTestCase method init.

@Before
public void init() throws Exception {
    initHeisenberg();
    configurationInstance = new LifecycleAwareConfigurationInstance(CONFIG_NAME, configurationModel, config, configurationState, emptyList(), empty());
    when(muleEvent.getMessage().getPayload()).thenReturn(new TypedValue<>(null, DATA_TYPE));
    when(operationModel.getModelProperty(ParameterGroupModelProperty.class)).thenReturn(empty());
    operationContext = new DefaultExecutionContext(extensionModel, of(configurationInstance), parameters.asMap(), operationModel, muleEvent, cursorProviderFactory, streamingManager, component, retryPolicyTemplate, IMMEDIATE_SCHEDULER, muleContext);
    operationContext = spy(operationContext);
}
Also used : LifecycleAwareConfigurationInstance(org.mule.runtime.module.extension.internal.runtime.config.LifecycleAwareConfigurationInstance) DefaultExecutionContext(org.mule.runtime.module.extension.internal.runtime.DefaultExecutionContext) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 DefaultExecutionContext (org.mule.runtime.module.extension.internal.runtime.DefaultExecutionContext)1 LifecycleAwareConfigurationInstance (org.mule.runtime.module.extension.internal.runtime.config.LifecycleAwareConfigurationInstance)1