test_class.declarator: server
test_class.modifier: private
test_class.original_string: private JettyDemoServer server;
test_class.type: JettyDemoServer
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-server/src/test/java/org/actioncontrollerdemo/jetty/JettyDemoServerTest.java
test_class.identifier: JettyDemoServerTest
test_case.body: @Test
      public void shouldStartSuccessfully() throws Exception {
          URL url = new URL(server.getUrl() + "/demo");
          HttpURLConnection connection = (HttpURLConnection) url.openConnection();
  
          assertThat(connection.getResponseCode())
                  .as(connection.getResponseMessage())
                  .isEqualTo(200);
          String body = HttpURLConnectionApiClient.asString(connection.getInputStream());
          assertThat(body).contains("<h1>Hello World</h1>");
      }
test_case.class_method_signature: JettyDemoServerTest.shouldStartSuccessfully()
test_case.full_signature: @Test public void shouldStartSuccessfully()
test_case.identifier: shouldStartSuccessfully
test_case.invocations: getUrl openConnection isEqualTo as assertThat getResponseCode getResponseMessage asString getInputStream contains assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldStartSuccessfully()
focal_class.declarator: logger = LoggerFactory.getLogger(JettyDemoServer.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(JettyDemoServer.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: server = new Server()
focal_class.modifier: private
focal_class.original_string: private Server server = new Server();
focal_class.type: Server
focal_class.var_name: server
focal_class.declarator: connector = new ServerConnector(server)
focal_class.modifier: private
focal_class.original_string: private ServerConnector connector = new ServerConnector(server);
focal_class.type: ServerConnector
focal_class.var_name: connector
focal_class.declarator: localhostName
focal_class.modifier: private
focal_class.original_string: private String localhostName;
focal_class.type: String
focal_class.var_name: localhostName
focal_class.declarator: config = new ConfigObserver("demoserver")
focal_class.modifier: private
focal_class.original_string: private ConfigObserver config = new ConfigObserver("demoserver");
focal_class.type: ConfigObserver
focal_class.var_name: config
focal_class.file: action-controller-demo-server/src/main/java/org/actioncontrollerdemo/jetty/JettyDemoServer.java
focal_class.identifier: JettyDemoServer
focal_class.class_method_signature: JettyDemoServer.JettyDemoServer()
focal_class.full_signature: public  JettyDemoServer()
focal_class.identifier: JettyDemoServer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  JettyDemoServer()
focal_class.class_method_signature: JettyDemoServer.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_class.class_method_signature: JettyDemoServer.start()
focal_class.full_signature: private void start()
focal_class.identifier: start
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void start()
focal_class.class_method_signature: JettyDemoServer.startConnector(InetSocketAddress httpSocketAddress)
focal_class.full_signature: private void startConnector(InetSocketAddress httpSocketAddress)
focal_class.identifier: startConnector
focal_class.modifiers: private
focal_class.parameters: (InetSocketAddress httpSocketAddress)
focal_class.return: void
focal_class.signature: void startConnector(InetSocketAddress httpSocketAddress)
focal_class.class_method_signature: JettyDemoServer.startConnector(int port)
focal_class.full_signature: public void startConnector(int port)
focal_class.identifier: startConnector
focal_class.modifiers: public
focal_class.parameters: (int port)
focal_class.return: void
focal_class.signature: void startConnector(int port)
focal_class.class_method_signature: JettyDemoServer.createServletContext(String contextPath)
focal_class.full_signature: private ServletContextHandler createServletContext(String contextPath)
focal_class.identifier: createServletContext
focal_class.modifiers: private
focal_class.parameters: (String contextPath)
focal_class.return: ServletContextHandler
focal_class.signature: ServletContextHandler createServletContext(String contextPath)
focal_class.class_method_signature: JettyDemoServer.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: JettyDemoServer.getUrl(ServerConnector connector)
focal_class.full_signature: private String getUrl(ServerConnector connector)
focal_class.identifier: getUrl
focal_class.modifiers: private
focal_class.parameters: (ServerConnector connector)
focal_class.return: String
focal_class.signature: String getUrl(ServerConnector connector)
focal_class.class_method_signature: JettyDemoServer.getHost(ServerConnector connector)
focal_class.full_signature: private String getHost(ServerConnector connector)
focal_class.identifier: getHost
focal_class.modifiers: private
focal_class.parameters: (ServerConnector connector)
focal_class.return: String
focal_class.signature: String getHost(ServerConnector connector)
focal_class.class_method_signature: JettyDemoServer.getPort()
focal_class.full_signature: public int getPort()
focal_class.identifier: getPort
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPort()
focal_method.body: public String getUrl() {
          return getUrl(connector);
      }
focal_method.class_method_signature: JettyDemoServer.getUrl()
focal_method.full_signature: public String getUrl()
focal_method.identifier: getUrl
focal_method.invocations: getUrl
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getUrl()