@PrepareForTest(value={ServiceRunner.class,Bidder.class,LogUtils.class})
@PowerMockIgnore(value={"javax.crypto.*","javax.management.*"})
public class RedisBidInfoDaoShortLivedMapSpec_replace
extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
key |
private com.lambdaworks.redis.RedisAsyncConnection<String,String> |
redisAsyncConnectionMock |
private RedisBidInfoDaoShortLivedMap |
redisBidInfoDaoShortLivedMap |
private BidInFlightInfo |
value |
| Constructor and Description |
|---|
RedisBidInfoDaoShortLivedMapSpec_replace() |
| Modifier and Type | Method and Description |
|---|---|
void |
negativeFlow_returnsNullIfCodeThrowsExecutionException() |
void |
negativeFlow_returnsNullIfCodeThrowsInterruptedException() |
void |
negativeFlow_returnsNullIfCodeThrowsIOException() |
void |
negativeFlow_returnsNullIfCodeThrowsJsonProcessingException() |
void |
positiveFlow_returnsOldValueIfCodeRunsSuccessfully() |
void |
setUp() |
private void |
testReplace_negativeFlow(Class<? extends Exception> exceptionClass) |
private com.lambdaworks.redis.RedisAsyncConnection<String,String> redisAsyncConnectionMock
private RedisBidInfoDaoShortLivedMap redisBidInfoDaoShortLivedMap
private String key
private BidInFlightInfo value
public RedisBidInfoDaoShortLivedMapSpec_replace()
public void positiveFlow_returnsOldValueIfCodeRunsSuccessfully()
throws Exception
Exceptionpublic void negativeFlow_returnsNullIfCodeThrowsInterruptedException()
throws Exception
Exceptionpublic void negativeFlow_returnsNullIfCodeThrowsExecutionException()
throws Exception
Exceptionpublic void negativeFlow_returnsNullIfCodeThrowsJsonProcessingException()
throws Exception
Exceptionpublic void negativeFlow_returnsNullIfCodeThrowsIOException()
throws Exception
Exception