@MockPolicy(value=SharedSetUp.class) @PrepareForTest(value=AdCache.class) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class AdCacheSpec_setBudget extends Object
Modifier and Type | Field and Description |
---|---|
private AdCache |
adCache |
private AdCacheConfig |
adCacheConfig |
private com.lambdaworks.redis.RedisClient |
redisClientMock |
private com.lambdaworks.redis.RedisConnection<String,String> |
redisConnectionMock |
Constructor and Description |
---|
AdCacheSpec_setBudget() |
Modifier and Type | Method and Description |
---|---|
void |
negativeFlow_throwsExceptionIfRedisConnectionIsNull() |
void |
positiveFlow_returnsExpectedResult() |
void |
setUp() |
private AdCacheConfig adCacheConfig
private com.lambdaworks.redis.RedisClient redisClientMock
private com.lambdaworks.redis.RedisConnection<String,String> redisConnectionMock
private AdCache adCache
public void negativeFlow_throwsExceptionIfRedisConnectionIsNull() throws Lot49Exception
Lot49Exception
public void positiveFlow_returnsExpectedResult() throws Lot49Exception
Lot49Exception