@Test public void getServerConfig_creates_AppServerConfig() { System.setProperty("@appId", APP_ID); System.setProperty("@environment", "compiletimetest"); Config configForTesting = TypesafeConfigUtil.loadConfigForAppIdAndEnvironment(APP_ID, "compiletimetest"); Main main = new Main(); ServerConfig serverConfig = main.getServerConfig(configForTesting); assertThat(serverConfig) .isNotNull() .isInstanceOf(AppServerConfig.class); }
@Override protected ServerConfig getServerConfig(Config appConfig) { return new AppServerConfig(appConfig); }
Main extends TypesafeConfigServer { @Override protected ServerConfig getServerConfig(Config appConfig) { return new AppServerConfig(appConfig); } }
Main extends TypesafeConfigServer { @Override protected ServerConfig getServerConfig(Config appConfig) { return new AppServerConfig(appConfig); }  }
Main extends TypesafeConfigServer { @Override protected ServerConfig getServerConfig(Config appConfig) { return new AppServerConfig(appConfig); }  static void main(String[] args); }
Main extends TypesafeConfigServer { @Override protected ServerConfig getServerConfig(Config appConfig) { return new AppServerConfig(appConfig); }  static void main(String[] args);  }