@MockPolicy(value=SharedSetUp.class) @PrepareForTest(value=LogUtils.class) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class AdCacheSpec_isValidAd extends Object
| Modifier and Type | Field and Description |
|---|---|
private AdCache |
adCache |
private AdCacheConfig |
adCacheConfig |
private String |
adId |
private com.lambdaworks.redis.RedisConnection<String,String> |
redisConnectionMock |
| Constructor and Description |
|---|
AdCacheSpec_isValidAd() |
| Modifier and Type | Method and Description |
|---|---|
private BidderCalendar |
getBidderCalendar() |
void |
negativeFlow_returnsFalseIfBudgetIsZero() |
void |
negativeFlow_returnsFalseIfEndsOnIsBeforeNow() |
void |
negativeFlow_returnsFalseIfStartsOnIsAfterNow() |
void |
negativeFlow_returnsFalseIfStartsOnIsInvalid() |
void |
positiveFlow_returnsTrueIfBudgetIsPositive() |
void |
positiveFlow_returnsTrueIfBudgetIsUnlimited() |
void |
positiveFlow_returnsTrueIfEndsOnIsASAP() |
void |
positiveFlow_returnsTrueIfEndsOnIsInvalid() |
void |
positiveFlow_returnsTrueIfEndsOnNotFound() |
private void |
setUnlimitedBudget() |
void |
setUp() |
private AdCacheConfig adCacheConfig
private AdCache adCache
private com.lambdaworks.redis.RedisConnection<String,String> redisConnectionMock
private String adId
public void negativeFlow_returnsFalseIfBudgetIsZero()
throws Exception
Exceptionpublic void positiveFlow_returnsTrueIfBudgetIsPositive()
throws Exception
Exceptionpublic void positiveFlow_returnsTrueIfBudgetIsUnlimited()
throws Exception
Exceptionpublic void negativeFlow_returnsFalseIfStartsOnIsAfterNow()
throws Exception
Exceptionpublic void negativeFlow_returnsFalseIfStartsOnIsInvalid()
throws Exception
Exceptionpublic void positiveFlow_returnsTrueIfEndsOnIsASAP()
throws Exception
Exceptionpublic void positiveFlow_returnsTrueIfEndsOnIsInvalid()
throws Exception
Exceptionpublic void positiveFlow_returnsTrueIfEndsOnNotFound()
throws Exception
Exceptionpublic void negativeFlow_returnsFalseIfEndsOnIsBeforeNow()
throws Exception
Exceptionprivate void setUnlimitedBudget()
private BidderCalendar getBidderCalendar()