@Test public void public_static_void_main_method_starts_the_server() throws Exception { System.setProperty("@appId", APP_ID); System.setProperty("@environment", "compiletimetest"); int serverPort = TestUtils.findFreePort(); System.setProperty("endpoints.port", String.valueOf(serverPort)); ConfigFactory.invalidateCaches(); Main.main(new String[]{}); ExtractableResponse<?> healthCheckCallResponse = given() .baseUri("http: .port(serverPort) .log().all() .when() .basePath("/healthcheck") .get() .then() .log().all() .extract(); assertThat(healthCheckCallResponse.statusCode()).isEqualTo(200); }
public static void main(String[] args) throws Exception { new Main().launchServer(args); }
Main extends TypesafeConfigServer { public static void main(String[] args) throws Exception { new Main().launchServer(args); } }
Main extends TypesafeConfigServer { public static void main(String[] args) throws Exception { new Main().launchServer(args); }  }
Main extends TypesafeConfigServer { public static void main(String[] args) throws Exception { new Main().launchServer(args); }  static void main(String[] args); }
Main extends TypesafeConfigServer { public static void main(String[] args) throws Exception { new Main().launchServer(args); }  static void main(String[] args);  }