use of org.mule.runtime.module.extension.api.loader.java.type.ExtensionParameter in project mule by mulesoft.
the class OperationReturnTypeModelValidatorTestCase method completitionCallbackWithoutGenerics.
@Test(expected = IllegalModelDefinitionException.class)
public void completitionCallbackWithoutGenerics() {
when(methodElement.getReturnType()).thenReturn(new TypeWrapper(forType(new TypeToken<Void>() {
}.getType()), typeLoader));
ExtensionParameter completionCallbackParam = mock(ExtensionParameter.class);
when(completionCallbackParam.getType()).thenReturn(new TypeWrapper(forType(new TypeToken<CompletionCallback>() {
}.getType()), typeLoader));
when(methodElement.getParameters()).thenReturn(singletonList(completionCallbackParam));
validate(extensionModel, validator);
}
Aggregations