@MockPolicy(value=SharedSetUp.class) @PrepareForTest(value={RedisService.class,LogUtils.class}) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class RedisServiceSpec extends Object
| Modifier and Type | Field and Description |
|---|---|
private com.lambdaworks.redis.RedisClient |
rcMock |
private ServiceRunner |
serviceRunnerMock |
private ScheduledThreadPoolExecutor |
sExecutor |
| Constructor and Description |
|---|
RedisServiceSpec() |
| Modifier and Type | Method and Description |
|---|---|
void |
negativeFlow_getConnection() |
void |
negativeFlow_init_shouldNotSetWrongServiceConfig() |
void |
negativeFlow_refreshPool_canNotConnect() |
void |
negativeFlow_run_canNotConnect() |
void |
positiveFlow_close() |
void |
positiveFlow_getConnection() |
void |
positiveFlow_getDaoShortLivedMap() |
void |
positiveFlow_init_shouldCallrefreshPool() |
void |
positiveFlow_init_shouldSetOtherParams() |
void |
positiveFlow_init_shouldSetRedisServiceConfig() |
void |
positiveFlow_run() |
void |
setUp() |
private ServiceRunner serviceRunnerMock
private ScheduledThreadPoolExecutor sExecutor
private com.lambdaworks.redis.RedisClient rcMock
public void positiveFlow_init_shouldSetRedisServiceConfig()
throws Lot49Exception
Lot49Exceptionpublic void positiveFlow_init_shouldSetOtherParams()
throws Lot49Exception
Lot49Exceptionpublic void positiveFlow_init_shouldCallrefreshPool()
throws Lot49Exception
Lot49Exceptionpublic void negativeFlow_init_shouldNotSetWrongServiceConfig()
throws Lot49Exception
Lot49Exceptionpublic void negativeFlow_refreshPool_canNotConnect()
throws Lot49Exception
Lot49Exceptionpublic void negativeFlow_run_canNotConnect()
throws Lot49Exception
Lot49Exceptionpublic void positiveFlow_run()
throws Lot49Exception
Lot49Exceptionpublic void negativeFlow_getConnection()
throws Lot49Exception
Lot49Exceptionpublic void positiveFlow_getConnection()
throws Lot49Exception
Lot49Exceptionpublic void positiveFlow_getDaoShortLivedMap()
throws Lot49Exception
Lot49Exceptionpublic void positiveFlow_close()
throws Lot49Exception
Lot49Exception