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