use of org.simbasecurity.core.service.config.CoreConfigurationService in project simba-os by cegeka.
the class StubEmailFactory method instance.
private static StubEmailFactory instance(boolean emailRequired) {
CoreConfigurationService coreConfigurationService = mock(CoreConfigurationService.class);
when(coreConfigurationService.getValue(SimbaConfigurationParameter.EMAIL_ADDRESS_REQUIRED)).thenReturn(emailRequired);
return new StubEmailFactory(coreConfigurationService);
}
Aggregations