@Test(expected = IllegalStateException.class) public void must_set_configuration_before_providing_config() { dropwizardModule.providePlatformConfiguration(); }
@Provides @Singleton @Graceland PlatformConfiguration providePlatformConfiguration() { Preconditions.checkState(configuration != null, "Configuration has not been set."); return configuration; }
DropwizardModule extends AbstractModule { @Provides @Singleton @Graceland PlatformConfiguration providePlatformConfiguration() { Preconditions.checkState(configuration != null, "Configuration has not been set."); return configuration; } }
DropwizardModule extends AbstractModule { @Provides @Singleton @Graceland PlatformConfiguration providePlatformConfiguration() { Preconditions.checkState(configuration != null, "Configuration has not been set."); return configuration; }  }
DropwizardModule extends AbstractModule { @Provides @Singleton @Graceland PlatformConfiguration providePlatformConfiguration() { Preconditions.checkState(configuration != null, "Configuration has not been set."); return configuration; }  void setup(PlatformConfiguration config, Environment env); }
DropwizardModule extends AbstractModule { @Provides @Singleton @Graceland PlatformConfiguration providePlatformConfiguration() { Preconditions.checkState(configuration != null, "Configuration has not been set."); return configuration; }  void setup(PlatformConfiguration config, Environment env);  }