@Test public void eurekaServerHooks_returns_object_with_null_hooks() { AppEurekaGuiceModule module = new AppEurekaGuiceModule(mock(Config.class)); EurekaServerHooks result = module.eurekaServerHooks(); assertThat(result).isNotNull(); assertThat(result.eurekaStartupHook).isNull(); assertThat(result.eurekaShutdownHook).isNull(); }
@Provides @Singleton public EurekaServerHooks eurekaServerHooks() { return new EurekaServerHooks(null, null); }
AppEurekaGuiceModule extends AbstractModule { @Provides @Singleton public EurekaServerHooks eurekaServerHooks() { return new EurekaServerHooks(null, null); } }
AppEurekaGuiceModule extends AbstractModule { @Provides @Singleton public EurekaServerHooks eurekaServerHooks() { return new EurekaServerHooks(null, null); } AppEurekaGuiceModule(Config appConfig); }
AppEurekaGuiceModule extends AbstractModule { @Provides @Singleton public EurekaServerHooks eurekaServerHooks() { return new EurekaServerHooks(null, null); } AppEurekaGuiceModule(Config appConfig); @Provides @Singleton EurekaServerHooks eurekaServerHooks(); }
AppEurekaGuiceModule extends AbstractModule { @Provides @Singleton public EurekaServerHooks eurekaServerHooks() { return new EurekaServerHooks(null, null); } AppEurekaGuiceModule(Config appConfig); @Provides @Singleton EurekaServerHooks eurekaServerHooks();  }