test_class.file: dubbo-remoting/dubbo-remoting-http/src/test/java/org/apache/dubbo/remoting/http/tomcat/TomcatHttpBinderTest.java
test_class.identifier: TomcatHttpBinderTest
test_case.body: @Test
      public void shouldAbleHandleRequestForTomcatBinder() throws Exception {
          int port = NetUtils.getAvailablePort();
          URL url = new URL("http", "localhost", port,
                  new String[]{Constants.BIND_PORT_KEY, String.valueOf(port)});
  
          HttpServer httpServer = new TomcatHttpBinder().bind(url, new HttpHandler() {
              @Override
              public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException {
                  response.getWriter().write("Tomcat");
              }
          });
  
          String response = Request.Get(url.toJavaURL().toURI()).execute().returnContent().asString();
  
          assertThat(response, is("Tomcat"));
  
          httpServer.close();
      }
test_case.class_method_signature: TomcatHttpBinderTest.shouldAbleHandleRequestForTomcatBinder()
test_case.full_signature: @Test public void shouldAbleHandleRequestForTomcatBinder()
test_case.identifier: shouldAbleHandleRequestForTomcatBinder
test_case.invocations: getAvailablePort valueOf bind write getWriter asString returnContent execute Get toURI toJavaURL assertThat is close
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldAbleHandleRequestForTomcatBinder()
focal_class.file: dubbo-remoting/dubbo-remoting-http/src/main/java/org/apache/dubbo/remoting/http/tomcat/TomcatHttpBinder.java
focal_class.identifier: TomcatHttpBinder
focal_class.interfaces: implements HttpBinder
focal_class.class_method_signature: TomcatHttpBinder.bind(URL url, HttpHandler handler)
focal_class.full_signature: @Override public HttpServer bind(URL url, HttpHandler handler)
focal_class.identifier: bind
focal_class.modifiers: @Override public
focal_class.parameters: (URL url, HttpHandler handler)
focal_class.return: HttpServer
focal_class.signature: HttpServer bind(URL url, HttpHandler handler)
focal_method.body: @Override
      public HttpServer bind(URL url, HttpHandler handler) {
          return new TomcatHttpServer(url, handler);
      }
focal_method.class_method_signature: TomcatHttpBinder.bind(URL url, HttpHandler handler)
focal_method.full_signature: @Override public HttpServer bind(URL url, HttpHandler handler)
focal_method.identifier: bind
focal_method.modifiers: @Override public
focal_method.parameters: (URL url, HttpHandler handler)
focal_method.return: HttpServer
focal_method.signature: HttpServer bind(URL url, HttpHandler handler)