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