@PrepareForTest(value={ServiceRunner.class,ProviderFactory.class,LogUtils.class}) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class ServiceRunnerSpec_initProviders extends Object
Modifier and Type | Field and Description |
---|---|
private Lot49Config |
lot49ConfigMock |
private Map<String,Provider> |
providers |
private Map<String,Map> |
providersConfig |
private ServiceRunner |
serviceRunnerMock |
Constructor and Description |
---|
ServiceRunnerSpec_initProviders() |
Modifier and Type | Method and Description |
---|---|
void |
negativeFlow_doesNotAddProviderIfInitAsyncThrowsException() |
void |
negativeFlow_interruptsExecutionIfGetProvidersReturnsNull() |
void |
negativeFlow_skipsInitializationIfProviderIsNotEnabled() |
void |
positiveFlow_addsProviderIfInitAsyncDoesNotThrowException() |
void |
positiveFlow_addsProviderIfInitFinishesSuccessfully() |
private Provider |
prepareProviderMock(String provName,
boolean isEnabled,
boolean isInitAsync,
Throwable initAsyncException) |
void |
setUp() |
private Lot49Config lot49ConfigMock
private ServiceRunner serviceRunnerMock
public void negativeFlow_interruptsExecutionIfGetProvidersReturnsNull() throws Lot49Exception
Lot49Exception
public void positiveFlow_addsProviderIfInitAsyncDoesNotThrowException() throws Exception
Exception
public void negativeFlow_doesNotAddProviderIfInitAsyncThrowsException() throws Exception
Exception
public void positiveFlow_addsProviderIfInitFinishesSuccessfully() throws Exception
Exception
public void negativeFlow_skipsInitializationIfProviderIsNotEnabled() throws Exception
Exception