test_class.declarator: server
test_class.modifier: private
test_class.original_string: private DemoServer server;
test_class.type: DemoServer
test_class.var_name: server
test_class.declarator: client
test_class.modifier: private
test_class.original_string: private HttpURLConnectionApiClient client;
test_class.type: HttpURLConnectionApiClient
test_class.var_name: client
test_class.file: action-controller-demo-app/src/test/java/org/actioncontrollerdemo/jdkhttp/DemoServerTest.java
test_class.identifier: DemoServerTest
test_case.body: @Test
      public void shouldShowFrontPage() throws IOException {
          HttpURLConnection connection = (HttpURLConnection) new URL(server.getURL()).openConnection();
          assertThat(connection.getResponseCode()).isEqualTo(200);
          StringWriter writer = new StringWriter();
          new BufferedReader(new InputStreamReader(connection.getInputStream())).transferTo(writer);
          assertThat(writer.toString())
                  .contains("<h1>Hello World</h1>");
      }
test_case.class_method_signature: DemoServerTest.shouldShowFrontPage()
test_case.full_signature: @Test public void shouldShowFrontPage()
test_case.identifier: shouldShowFrontPage
test_case.invocations: openConnection getURL isEqualTo assertThat getResponseCode transferTo getInputStream contains assertThat toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldShowFrontPage()
focal_class.declarator: httpServer
focal_class.modifier: private final
focal_class.original_string: private final HttpServer httpServer;
focal_class.type: HttpServer
focal_class.var_name: httpServer
focal_class.file: action-controller-demo-app/src/main/java/org/actioncontrollerdemo/jdkhttp/DemoServer.java
focal_class.identifier: DemoServer
focal_class.class_method_signature: DemoServer.DemoServer(InetSocketAddress inetSocketAddress)
focal_class.full_signature: public  DemoServer(InetSocketAddress inetSocketAddress)
focal_class.identifier: DemoServer
focal_class.modifiers: public
focal_class.parameters: (InetSocketAddress inetSocketAddress)
focal_class.signature:  DemoServer(InetSocketAddress inetSocketAddress)
focal_class.class_method_signature: DemoServer.DemoServer(int port)
focal_class.full_signature: public  DemoServer(int port)
focal_class.identifier: DemoServer
focal_class.modifiers: public
focal_class.parameters: (int port)
focal_class.signature:  DemoServer(int port)
focal_class.class_method_signature: DemoServer.start()
focal_class.full_signature: public void start()
focal_class.identifier: start
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void start()
focal_class.class_method_signature: DemoServer.stop(int delay)
focal_class.full_signature: public void stop(int delay)
focal_class.identifier: stop
focal_class.modifiers: public
focal_class.parameters: (int delay)
focal_class.return: void
focal_class.signature: void stop(int delay)
focal_class.class_method_signature: DemoServer.getURL()
focal_class.full_signature: public String getURL()
focal_class.identifier: getURL
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getURL()
focal_class.class_method_signature: DemoServer.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_method.body: public String getURL() {
          //return "http://" + httpServer.getAddress().getHostString() + ":" + httpServer.getAddress().getPort();
          return "http://" + "localhost" + ":" + httpServer.getAddress().getPort();
      }
focal_method.class_method_signature: DemoServer.getURL()
focal_method.full_signature: public String getURL()
focal_method.identifier: getURL
focal_method.invocations: getPort getAddress
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getURL()