@MockPolicy(value=SharedSetUp.class) @PrepareForTest(value=LogUtils.class) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class AdCacheSpec_run extends Object
Modifier and Type | Field and Description |
---|---|
private AdCache |
adCache |
private AdCacheConfig |
adCacheConfig |
private int |
poolSize |
private com.lambdaworks.redis.RedisClient |
redisClientMock |
private ServiceRunner |
serviceRunnerMock |
org.junit.rules.TemporaryFolder |
tempFolder |
private int |
ttlMinutes |
Constructor and Description |
---|
AdCacheSpec_run() |
Modifier and Type | Method and Description |
---|---|
void |
concurrentFlow_secondTaskBreaksIfFirstTaskIsRunning() |
void |
negativeFlow_logsErrorIfTtlMinutesIsZero() |
void |
positiveFlow_expectedLogsIfNotRefreshAds() |
void |
positiveFlow_expectedLogsIfRefreshAds() |
void |
setUp() |
private void |
testRun_positiveFlow(boolean refreshAds) |
private AdCacheConfig adCacheConfig
private com.lambdaworks.redis.RedisClient redisClientMock
private AdCache adCache
private ServiceRunner serviceRunnerMock
private int poolSize
private final int ttlMinutes
public org.junit.rules.TemporaryFolder tempFolder
public void negativeFlow_logsErrorIfTtlMinutesIsZero() throws Exception
Exception
public void positiveFlow_expectedLogsIfRefreshAds() throws Exception
Exception
public void positiveFlow_expectedLogsIfNotRefreshAds() throws Exception
Exception
private void testRun_positiveFlow(boolean refreshAds) throws Exception
Exception