Search in sources :

Example 1 with JedisPoolApacheImpl

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();
}
Also used : JedisPoolApacheImpl(io.leopard.redis.util.JedisPoolApacheImpl) JedisPool(io.leopard.redis.JedisPool) Test(org.junit.Test)

Aggregations

JedisPool (io.leopard.redis.JedisPool)1 JedisPoolApacheImpl (io.leopard.redis.util.JedisPoolApacheImpl)1 Test (org.junit.Test)1