@Test public void can_build_with_application() { Application application = mock(Application.class); when(application.getPlugins()).thenReturn(ImmutableList.<Plugin>of()); Platform.forApplication(application); }
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);  }