@PrepareForTest(value=LogUtils.class) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class RedisJsonFutureSpec_getSafe extends Object
Modifier and Type | Field and Description |
---|---|
org.junit.rules.ExpectedException |
exceptionRule |
private RedisService |
redisService |
Constructor and Description |
---|
RedisJsonFutureSpec_getSafe() |
Modifier and Type | Method and Description |
---|---|
private com.lambdaworks.redis.protocol.Command<?,?,Integer> |
createCommandMock(String commandOutputError,
Integer expectedResult) |
void |
negativeFlow_throwsExceptionIfFirstParameterIsCommandAndCommandOutputErrorIsNotNull() |
void |
negativeFlow_throwsExceptionIfFirstParameterIsFutureAndFutureGetThrowsExecutionException() |
void |
negativeFlow_throwsExceptionIfFirstParameterIsFutureAndFutureGetThrowsInterruptedException() |
void |
positiveFlow_returnsExpectedValueIfFirstParameterIsCommandAndCommandOutputErrorIsNull() |
void |
positiveFlow_returnsExpectedValueIfFirstParameterIsFuture() |
void |
positiveFlow_returnsNullIfFirstParameterIsNull() |
void |
setUp() |
private RedisService redisService
public org.junit.rules.ExpectedException exceptionRule
private com.lambdaworks.redis.protocol.Command<?,?,Integer> createCommandMock(String commandOutputError, Integer expectedResult)
public void positiveFlow_returnsNullIfFirstParameterIsNull() throws Exception
Exception
public void positiveFlow_returnsExpectedValueIfFirstParameterIsCommandAndCommandOutputErrorIsNull() throws Exception
Exception
public void negativeFlow_throwsExceptionIfFirstParameterIsCommandAndCommandOutputErrorIsNotNull() throws Exception
Exception
public void positiveFlow_returnsExpectedValueIfFirstParameterIsFuture() throws Exception
Exception
public void negativeFlow_throwsExceptionIfFirstParameterIsFutureAndFutureGetThrowsInterruptedException() throws Exception
Exception