@PrepareForTest(value={LogUtils.class,RedisCacheableWebResponseDaoShortLivedMap.class}) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class RedisCacheableWebResponseDaoShortLivedMapSpec_get extends Object
Modifier and Type | Field and Description |
---|---|
private String |
key |
private com.lambdaworks.redis.RedisAsyncConnection<String,String> |
redisAsyncConnectionMock |
private RedisCacheableWebResponseDaoShortLivedMap |
redisCacheableWebResponseDaoShortLivedMap |
Constructor and Description |
---|
RedisCacheableWebResponseDaoShortLivedMapSpec_get() |
Modifier and Type | Method and Description |
---|---|
void |
negativeFlow_returnsNullIfCodeThrowsExecutionException() |
void |
negativeFlow_returnsNullIfCodeThrowsInterruptedException() |
void |
positiveFlow_returnsExpectedValueIfCodeRunsSuccessfully() |
void |
setUp() |
private void |
testGet_negativeFlow(Class<? extends Exception> exceptionClass) |
private com.lambdaworks.redis.RedisAsyncConnection<String,String> redisAsyncConnectionMock
private RedisCacheableWebResponseDaoShortLivedMap redisCacheableWebResponseDaoShortLivedMap
private String key
public RedisCacheableWebResponseDaoShortLivedMapSpec_get()
public void positiveFlow_returnsExpectedValueIfCodeRunsSuccessfully() throws Exception
Exception
public void negativeFlow_returnsNullIfCodeThrowsInterruptedException() throws Exception
Exception
public void negativeFlow_returnsNullIfCodeThrowsExecutionException() throws Exception
Exception