@Test public void registersJedisInjectableProvider() throws Exception { bundle.run(config, environment); ArgumentCaptor<JedisFactory> captor = ArgumentCaptor.forClass(JedisFactory.class); verify(jerseyEnvironment, atLeastOnce()).register(captor.capture()); assertThat(captor.getValue()).isNotNull(); }
@Test public void registersHealthCheck() throws Exception { bundle.run(config, environment); ArgumentCaptor<JedisHealthCheck> captor = ArgumentCaptor.forClass(JedisHealthCheck.class); verify(healthChecks).register(eq("redis"), captor.capture()); assertThat(captor.getValue()).isNotNull(); }
@Test public void createsJedisPoolFromFactory() throws Exception { bundle.run(config, environment); verify(jedisFactory).build(environment); assertThat(bundle.getPool()).is(pool); }
@Test public void bootstrapsNothing() throws Exception { bundle.initialize(bootstrap); verifyZeroInteractions(bootstrap); }