@Test(invocationCount = 100, threadPoolSize = 50, invocationTimeOut = 10) public void testOneConnect() { try { begin(); IRedisDao redis = ioc.get(RedisDao.class, "redis"); redis.incr("a"); redis.decr("a"); } catch (JedisException e) { closeWithEx(); } finally { close(); } }
@Test(invocationCount = 100, threadPoolSize = 50, invocationTimeOut = 10) public void testOpenCloseEach() { IRedisDao redis = ioc.get(RedisDao.class, "redis"); redis.incr("a"); redis.decr("a"); }