@Test public void disposesAJedisConnectionProperly() { factory.dispose(jedis); verify(jedis).close(); }
@Override public void dispose(Jedis jedis) { jedis.close(); }
JedisFactory implements Factory<Jedis> { @Override public void dispose(Jedis jedis) { jedis.close(); } }
JedisFactory implements Factory<Jedis> { @Override public void dispose(Jedis jedis) { jedis.close(); } JedisFactory(JedisPool pool); }
JedisFactory implements Factory<Jedis> { @Override public void dispose(Jedis jedis) { jedis.close(); } JedisFactory(JedisPool pool); @Override Jedis provide(); @Override void dispose(Jedis jedis); }
JedisFactory implements Factory<Jedis> { @Override public void dispose(Jedis jedis) { jedis.close(); } JedisFactory(JedisPool pool); @Override Jedis provide(); @Override void dispose(Jedis jedis);  }