use of org.mule.runtime.module.extension.internal.loader.java.property.ImplementingMethodModelProperty in project mule by mulesoft.
the class ExportedPackagesValidatorTestCase method withMethod.
private void withMethod(OperationModel operationModel, Optional<Method> optionalMethod) {
when(operationModel.getModelProperty(ImplementingMethodModelProperty.class)).thenReturn(optionalMethod.map(ImplementingMethodModelProperty::new));
when(operationModel.getModelProperty(ExtensionOperationDescriptorModelProperty.class)).thenReturn(optionalMethod.map(method -> new ExtensionOperationDescriptorModelProperty(new MethodWrapper(method, loader))));
}
Aggregations