use of org.mule.runtime.module.extension.internal.loader.java.type.runtime.MethodWrapper in project mule by mulesoft.
the class ExportedArtifactsCollectorTestCase 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))));
}
use of org.mule.runtime.module.extension.internal.loader.java.type.runtime.MethodWrapper 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