@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
Exception
public void positiveFlow_returnsTrueIfBudgetIsPositive() throws Exception
Exception
public void positiveFlow_returnsTrueIfBudgetIsUnlimited() throws Exception
Exception
public void negativeFlow_returnsFalseIfStartsOnIsAfterNow() throws Exception
Exception
public void negativeFlow_returnsFalseIfStartsOnIsInvalid() throws Exception
Exception
public void positiveFlow_returnsTrueIfEndsOnIsASAP() throws Exception
Exception
public void positiveFlow_returnsTrueIfEndsOnIsInvalid() throws Exception
Exception
public void positiveFlow_returnsTrueIfEndsOnNotFound() throws Exception
Exception
public void negativeFlow_returnsFalseIfEndsOnIsBeforeNow() throws Exception
Exception
private void setUnlimitedBudget()
private BidderCalendar getBidderCalendar()