public void testDevAppServer_async()

in app-gradle-plugin/src/integTest/java/com/google/cloud/tools/gradle/appengine/AppEngineStandardPluginIntegrationTest.java [122:150]


  public void testDevAppServer_async() throws InterruptedException, IOException {
    GradleRunner.create()
        .withProjectDir(testProjectDir.getRoot())
        .withPluginClasspath()
        .withArguments("appengineStart")
        .build();

    File expectedLogFileDir =
        new File(
            testProjectDir.getRoot(),
            "/build/" + AppEngineStandardPlugin.DEV_APP_SERVER_OUTPUT_DIR_NAME);

    Assert.assertEquals(1, expectedLogFileDir.listFiles().length);
    File devAppserverLogFile = new File(expectedLogFileDir, "dev_appserver.out");
    String devAppServerOutput =
        FileUtils.readFileToString(devAppserverLogFile, Charset.defaultCharset());
    Assert.assertTrue(devAppServerOutput.contains(devAppServerStartedString));

    AssertConnection.assertResponse(
        "http://localhost:8080", 200, "Hello from the App Engine Standard project.");

    GradleRunner.create()
        .withProjectDir(testProjectDir.getRoot())
        .withPluginClasspath()
        .withArguments("appengineStop")
        .build();

    AssertConnection.assertUnreachable("http://localhost:8080", 8000);
  }