@MockPolicy(value=SharedSetUp.class) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class AdCacheSpec_doRun 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_doRun() |
Modifier and Type | Method and Description |
---|---|
void |
concurrentFlow_secondTaskBreaksIfFirstTaskIsRunning() |
void |
negativeFlow_breaksIfAlreadyRunning() |
void |
negativeFlow_breaksIfRedisErrorOccurs() |
void |
positiveFlow_returnsExpectedResultIfNotScheduled() |
void |
positiveFlow_returnsExpectedResultIfScheduledAndNotRefreshAds() |
void |
positiveFlow_returnsExpectedResultIfScheduledAndRefreshAds() |
void |
setUp() |
private void |
testDoRun_positiveFlow(boolean scheduled,
boolean refreshAdsIfScheduled) |
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_breaksIfAlreadyRunning() throws Exception
Exception
public void negativeFlow_breaksIfRedisErrorOccurs() throws Exception
Exception
public void positiveFlow_returnsExpectedResultIfNotScheduled() throws Exception
Exception
public void positiveFlow_returnsExpectedResultIfScheduledAndNotRefreshAds() throws Exception
Exception
public void positiveFlow_returnsExpectedResultIfScheduledAndRefreshAds() throws Exception
Exception
private void testDoRun_positiveFlow(boolean scheduled, boolean refreshAdsIfScheduled) throws Exception
Exception