test_class.file: restx-specs-server/src/test/java/restx/specs/server/SpecsServerTest.java
test_class.identifier: SpecsServerTest
test_case.body: @Test
      public void should_use_spec() throws Exception {
          WebServer server = SpecsServer.getServer(WebServers.findAvailablePort(), "/api", ".");
          server.start();
          try {
              HttpRequest httpRequest = HttpRequest.get(server.baseUrl() + "/api/message?who=xavier");
  
              assertThat(httpRequest.code()).isEqualTo(200);
              assertThat(httpRequest.body().trim()).isEqualTo("{\"message\":\"hello xavier, it's 14:33:18\"}");
          } finally {
              server.stop();
          }
  
      }
test_case.class_method_signature: SpecsServerTest.should_use_spec()
test_case.full_signature: @Test public void should_use_spec()
test_case.identifier: should_use_spec
test_case.invocations: getServer findAvailablePort start get baseUrl isEqualTo assertThat code isEqualTo assertThat trim body stop
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_use_spec()
focal_class.file: restx-specs-server/src/main/java/restx/specs/server/SpecsServer.java
focal_class.identifier: SpecsServer
focal_class.class_method_signature: SpecsServer.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: SpecsServer.getServer(int port, String routerPath, String appBase)
focal_class.full_signature: static WebServer getServer(int port, String routerPath, String appBase)
focal_class.identifier: getServer
focal_class.modifiers: static
focal_class.parameters: (int port, String routerPath, String appBase)
focal_class.return: WebServer
focal_class.signature: WebServer getServer(int port, String routerPath, String appBase)
focal_method.body: static WebServer getServer(int port, String routerPath, String appBase) {
          return SimpleWebServer.builder().setRouterPath(routerPath).setAppBase(appBase).setPort(port).build();
      }
focal_method.class_method_signature: SpecsServer.getServer(int port, String routerPath, String appBase)
focal_method.full_signature: static WebServer getServer(int port, String routerPath, String appBase)
focal_method.identifier: getServer
focal_method.invocations: build setPort setAppBase setRouterPath builder
focal_method.modifiers: static
focal_method.parameters: (int port, String routerPath, String appBase)
focal_method.return: WebServer
focal_method.signature: WebServer getServer(int port, String routerPath, String appBase)