@PowerMockIgnore(value={"javax.crypto.*","javax.management.*"})
public class RedisDaoCountersSpec_addAndGet
extends Object
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
exceptionRule |
private String |
key |
private com.lambdaworks.redis.RedisAsyncConnection<String,String> |
redisAsyncConnectionMock |
private RedisDaoCounters |
redisDaoCounters |
private long |
value |
| Constructor and Description |
|---|
RedisDaoCountersSpec_addAndGet() |
| Modifier and Type | Method and Description |
|---|---|
void |
negativeFlow_throwsExecutionExceptionIfIncrbyThrowsExecutionException() |
void |
negativeFlow_throwsLot49ExceptionIfFutureGetThrowsExecutionException() |
void |
positiveFlow_returnsExpectedValueIfCodeRunsSuccessfully() |
void |
positiveFlow_returnsZeroIfIncrbyReturnsNull() |
void |
setUp() |
private com.lambdaworks.redis.RedisAsyncConnection<String,String> redisAsyncConnectionMock
private RedisDaoCounters redisDaoCounters
private String key
private long value
public org.junit.rules.ExpectedException exceptionRule
public void positiveFlow_returnsExpectedValueIfCodeRunsSuccessfully()
throws Exception
Exceptionpublic void positiveFlow_returnsZeroIfIncrbyReturnsNull()
throws Exception
Exceptionpublic void negativeFlow_throwsExecutionExceptionIfIncrbyThrowsExecutionException()
throws Exception
Exception