@PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class RedisDaoShortLivedMapSpec_isExpired extends Object
Modifier and Type | Field and Description |
---|---|
private com.lambdaworks.redis.RedisAsyncConnection<String,String> |
redisAsyncConnectionMock |
private RedisDaoShortLivedMap<?> |
redisDaoShortLivedMap |
Constructor and Description |
---|
RedisDaoShortLivedMapSpec_isExpired() |
Modifier and Type | Method and Description |
---|---|
void |
returnsFalseIfTimeLeftIsPositive() |
void |
returnsTrueIfPttlGetThrowsExecutionException() |
void |
returnsTrueIfPttlGetThrowsInterruptedException() |
void |
setUp() |
private void |
testIsExpired(Future<Long> pttlFuture,
Boolean expectedResult) |
private com.lambdaworks.redis.RedisAsyncConnection<String,String> redisAsyncConnectionMock
private RedisDaoShortLivedMap<?> redisDaoShortLivedMap
public void returnsFalseIfTimeLeftIsPositive() throws Exception
Exception
public void returnsTrueIfPttlGetThrowsInterruptedException() throws Exception
Exception
public void returnsTrueIfPttlGetThrowsExecutionException() throws Exception
Exception
private void testIsExpired(Future<Long> pttlFuture, Boolean expectedResult) throws InterruptedException, ExecutionException