@Test(expected = NullPointerException.class) public void cannot_build_with_null_application() { Platform.forApplication(null); }
public static Platform forApplication(Application application) { Preconditions.checkNotNull(application, "Application cannot be null."); return new Platform(application); }
Platform extends io.dropwizard.Application<PlatformConfiguration> { public static Platform forApplication(Application application) { Preconditions.checkNotNull(application, "Application cannot be null."); return new Platform(application); } }
Platform extends io.dropwizard.Application<PlatformConfiguration> { public static Platform forApplication(Application application) { Preconditions.checkNotNull(application, "Application cannot be null."); return new Platform(application); } Platform(Application application); }
Platform extends io.dropwizard.Application<PlatformConfiguration> { public static Platform forApplication(Application application) { Preconditions.checkNotNull(application, "Application cannot be null."); return new Platform(application); } Platform(Application application); static Platform forApplication(Application application); void start(String[] args); @Override void initialize(Bootstrap<PlatformConfiguration> bootstrap); @Override void run(PlatformConfiguration configuration, Environment environment); }
Platform extends io.dropwizard.Application<PlatformConfiguration> { public static Platform forApplication(Application application) { Preconditions.checkNotNull(application, "Application cannot be null."); return new Platform(application); } Platform(Application application); static Platform forApplication(Application application); void start(String[] args); @Override void initialize(Bootstrap<PlatformConfiguration> bootstrap); @Override void run(PlatformConfiguration configuration, Environment environment);  }