use of org.mule.runtime.extension.api.client.OperationParameters in project mule by mulesoft.
the class ExtensionsClientTestCase method executeOperationWithDefaultValueParameter.
@Test
@Description("Executes an operation that has a parameter with default value using the client and checks the output")
public void executeOperationWithDefaultValueParameter() throws Throwable {
OperationParameters params = builder().configName("apple").build();
Result<Collection<?>, Object> result = doExecute(VEGAN, "tryToEatThisListOfMaps", params);
assertThat(result.getOutput(), instanceOf(List.class));
assertThat(result.getOutput(), hasSize(0));
}
use of org.mule.runtime.extension.api.client.OperationParameters in project mule by mulesoft.
the class ExtensionsClientTestCase method nonExistentConfiguration.
@Test
@Description("Tries to execute an operation with a configuration that does not exist")
public void nonExistentConfiguration() throws Throwable {
exception.expect(MuleRuntimeException.class);
exception.expectMessage("No configuration [configDontExist] found");
OperationParameters params = builder().configName("configDontExist").build();
doExecute(VEGAN, "applyPolicy", params);
}
Aggregations