use of org.mule.runtime.module.extension.internal.runtime.execution.ConfigurationObjectBuilderTestCase.TestConfig in project mule by mulesoft.
the class ConfigurationInstanceFactoryTestCase method before.
@Before
public void before() throws Exception {
mockConfigurationInstance(configurationModel, new TestConfig());
mockInterceptors(configurationModel, asList(() -> interceptor1, () -> interceptor2));
when(configurationModel.getOperationModels()).thenReturn(ImmutableList.of());
when(configurationModel.getSourceModels()).thenReturn(ImmutableList.of());
when(extensionModel.getOperationModels()).thenReturn(asList(operationModel));
when(extensionModel.getSourceModels()).thenReturn(asList(sourceModel));
when(operationModel.getModelProperty(ConnectivityModelProperty.class)).thenReturn(of(new ConnectivityModelProperty(Banana.class)));
when(sourceModel.getModelProperty(ConnectivityModelProperty.class)).thenReturn(of(new ConnectivityModelProperty(Banana.class)));
when(sourceModel.getErrorCallback()).thenReturn(of(sourceCallbackModel));
when(sourceModel.getSuccessCallback()).thenReturn(of(sourceCallbackModel));
when(muleContext.getConfiguration().getDefaultEncoding()).thenReturn(ENCODING);
resolverSet = ConfigurationObjectBuilderTestCase.createResolverSet();
factory = new ConfigurationInstanceFactory<>(extensionModel, configurationModel, resolverSet, new ReflectionCache(), muleContext);
}
Aggregations