use of io.leopard.redis.util.JedisPoolApacheImpl in project leopard by tanhaichao.
the class JedisPoolApacheImplTest method JedisPoolApacheImpl.
@Test
public void JedisPoolApacheImpl() throws Exception {
JedisPool jedisPoolMock = Mockito.mock(JedisPool.class);
JedisPoolApacheImpl jedisPool = new JedisPoolApacheImpl("host", 6311, 3000, 16, null);
// LeopardMockito.setProperty(jedisPool, jedisPoolMock, "pool");
jedisPool.getResource();
jedisPool.returnBrokenResource(null);
jedisPool.returnResource(null);
jedisPool.destroy();
}
Aggregations