@PrepareForTest(value={ServiceRunner.class,LogUtils.class}) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class ServiceRunnerSpec_initDbServices extends Object
Modifier and Type | Field and Description |
---|---|
private Map<String,AerospikeDBServiceConfig> |
aerospikes |
private DbConfigs |
dbConfigs |
private Map<String,DbService> |
dbServices |
private Map<String,DynamoDBServiceConfig> |
dynamodbs |
private Map<String,HazelcastServiceConfig> |
hazelcasts |
private Lot49Config |
lot49ConfigMock |
private Map<String,RedisServiceConfig> |
redises |
private ServiceRunner |
serviceRunnerMock |
Constructor and Description |
---|
ServiceRunnerSpec_initDbServices() |
Modifier and Type | Method and Description |
---|---|
private <T extends DbConfig> |
createDbConfig(Class<T> dbConfigClass,
boolean isEnabled) |
void |
negativeFlow_doesNotAddDbServiceIfItIsNotEnabled() |
void |
negativeFlow_doesNotCreateDbServiceIfItIsNotEnabled() |
void |
positiveFlow_addsDbServiceIfItIsEnabled() |
void |
setUp() |
private void |
verifyLogUtilsInit(String msg) |
private DbConfigs dbConfigs
private Lot49Config lot49ConfigMock
private ServiceRunner serviceRunnerMock
private Map<String,RedisServiceConfig> redises
private Map<String,DynamoDBServiceConfig> dynamodbs
private Map<String,AerospikeDBServiceConfig> aerospikes
private Map<String,HazelcastServiceConfig> hazelcasts
private <T extends DbConfig> T createDbConfig(Class<T> dbConfigClass, boolean isEnabled) throws Exception
Exception
public void positiveFlow_addsDbServiceIfItIsEnabled() throws Exception
Exception
public void negativeFlow_doesNotAddDbServiceIfItIsNotEnabled() throws Exception
Exception
public void negativeFlow_doesNotCreateDbServiceIfItIsNotEnabled() throws Exception
Exception
private void verifyLogUtilsInit(String msg)