use of org.mule.runtime.extension.api.runtime.source.ParameterizedSource in project mule by mulesoft.
the class HeisenbergMessageSourceTestCase method obtainSourceParameters.
@Test
public void obtainSourceParameters() throws Exception {
Component element = locator.find(Location.builder().globalName("source").addSourcePart().build()).get();
assertThat(element, is(instanceOf(ParameterizedSource.class)));
ParameterizedSource source = (ParameterizedSource) element;
Map<String, Object> parameters = source.getInitialisationParameters();
assertThat(parameters.get("initialBatchNumber"), is(0));
assertThat(parameters.get("corePoolSize"), is(1));
}
Aggregations