use of org.mule.test.heisenberg.extension.HeisenbergExtension in project mule by mulesoft.
the class DynamicConfigurationProviderTestCase method makeAlternateInstance.
private HeisenbergExtension makeAlternateInstance() throws Exception {
ResolverSetResult alternateResult = mock(ResolverSetResult.class, Mockito.RETURNS_DEEP_STUBS);
when(alternateResult.asMap()).thenReturn(new HashMap<>());
mockConfigurationInstance(configurationModel, MODULE_CLASS.newInstance());
when(resolverSet.resolve(from(event))).thenReturn(alternateResult);
return (HeisenbergExtension) provider.get(event).getValue();
}
use of org.mule.test.heisenberg.extension.HeisenbergExtension in project mule by mulesoft.
the class ReflectiveMethodOperationExecutorTestCase method initHeisenberg.
private void initHeisenberg() {
config = new HeisenbergExtension();
config.getPersonalInfo().setName(HEISENBERG);
config.setEnemies(Arrays.asList("Hank"));
operations = new HeisenbergOperations();
}
use of org.mule.test.heisenberg.extension.HeisenbergExtension in project mule by mulesoft.
the class GroupValueSetterTestCase method set.
@Test
public void set() throws Exception {
HeisenbergExtension extension = new HeisenbergExtension();
valueSetter.set(extension, result);
assertThat(extension.getPersonalInfo().getName(), is(NAME));
assertThat(extension.getPersonalInfo().getAge(), is(AGE));
assertThat(extension.getPersonalInfo().getDateOfBirth(), is(sameInstance(DATE)));
}
Aggregations