@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
Exceptionpublic void returnsTrueIfPttlGetThrowsInterruptedException()
throws Exception
Exceptionpublic void returnsTrueIfPttlGetThrowsExecutionException()
throws Exception
Exceptionprivate void testIsExpired(Future<Long> pttlFuture, Boolean expectedResult) throws InterruptedException, ExecutionException