Search in sources :

Example 1 with CoreConfigurationService

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);
}
Also used : CoreConfigurationService(org.simbasecurity.core.service.config.CoreConfigurationService)

Aggregations

CoreConfigurationService (org.simbasecurity.core.service.config.CoreConfigurationService)1