@Test public void destroysJedisPoolOnStop() throws Exception { bundle.run(configuration, environment, jedisPool); final ArgumentCaptor<Managed> captor = ArgumentCaptor.forClass(Managed.class); verify(lifecycle).manage(captor.capture()); captor.getValue().stop(); verify(jedisPool).destroy(); }
public void run(T configuration, Environment environment, JedisPool jedisPool) throws Exception { this.jedisPool = jedisPool; run(configuration, environment); }
RateLimitBundle implements ConfiguredBundle<T>, ConfigurationStrategy<T> { public void run(T configuration, Environment environment, JedisPool jedisPool) throws Exception { this.jedisPool = jedisPool; run(configuration, environment); } }
RateLimitBundle implements ConfiguredBundle<T>, ConfigurationStrategy<T> { public void run(T configuration, Environment environment, JedisPool jedisPool) throws Exception { this.jedisPool = jedisPool; run(configuration, environment); }  }
RateLimitBundle implements ConfiguredBundle<T>, ConfigurationStrategy<T> { public void run(T configuration, Environment environment, JedisPool jedisPool) throws Exception { this.jedisPool = jedisPool; run(configuration, environment); }  void run(T configuration, Environment environment, JedisPool jedisPool); @Override void run(T configuration, Environment environment); @Override void initialize(Bootstrap<?> bootstrap); }
RateLimitBundle implements ConfiguredBundle<T>, ConfigurationStrategy<T> { public void run(T configuration, Environment environment, JedisPool jedisPool) throws Exception { this.jedisPool = jedisPool; run(configuration, environment); }  void run(T configuration, Environment environment, JedisPool jedisPool); @Override void run(T configuration, Environment environment); @Override void initialize(Bootstrap<?> bootstrap);  }