@PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class RedisDaoCountersSpec_getAndSet extends Object
Modifier and Type | Field and Description |
---|---|
private Future<String> |
futureMock |
private String |
key |
private com.lambdaworks.redis.RedisAsyncConnection<String,String> |
redisAsyncConnectionMock |
private RedisDaoCounters |
redisDaoCounters |
private String |
valStr |
private long |
value |
Constructor and Description |
---|
RedisDaoCountersSpec_getAndSet() |
Modifier and Type | Method and Description |
---|---|
void |
negativeFlow_throwsLot49ExceptionIfCodeThrowsExecutionException() |
void |
negativeFlow_throwsLot49ExceptionIfCodeThrowsInterruptedException() |
void |
positiveFlow_returnsExpectedValueIfCodeRunsSuccessfully() |
void |
positiveFlow_returnsZeroIfFutureGetReturnsNull() |
void |
setUp() |
private void |
testGetAndSet_negativeFlow(Class<? extends Exception> exceptionClass) |
private void |
testGetAndSet_positiveFlow(String getReturn,
long expectedResult) |
private com.lambdaworks.redis.RedisAsyncConnection<String,String> redisAsyncConnectionMock
private RedisDaoCounters redisDaoCounters
private String key
private long value
private String valStr
public void positiveFlow_returnsExpectedValueIfCodeRunsSuccessfully() throws Exception
Exception
public void positiveFlow_returnsZeroIfFutureGetReturnsNull() throws Exception
Exception
private void testGetAndSet_positiveFlow(String getReturn, long expectedResult) throws Exception
Exception
public void negativeFlow_throwsLot49ExceptionIfCodeThrowsInterruptedException() throws Exception
Exception
public void negativeFlow_throwsLot49ExceptionIfCodeThrowsExecutionException() throws Exception
Exception