@Test(expected = IllegalArgumentException.class) public void testRefuseUsingUnbound() throws IOException { CollectorRegistry registry = new CollectorRegistry(); HTTPServer s = new HTTPServer(HttpServer.create(), registry, true); s.stop(); }
public void stop() { server.stop(0); executorService.shutdown(); }
HTTPServer { public void stop() { server.stop(0); executorService.shutdown(); } }
HTTPServer { public void stop() { server.stop(0); executorService.shutdown(); } HTTPServer(HttpServer httpServer, CollectorRegistry registry, boolean daemon);  HTTPServer(InetSocketAddress addr, CollectorRegistry registry, boolean daemon);  HTTPServer(InetSocketAddress addr, CollectorRegistry registry);  HTTPServer(int port, boolean daemon);  HTTPServer(int port);  HTTPServer(String host, int port, boolean daemon);  HTTPServer(String host, int port); }
HTTPServer { public void stop() { server.stop(0); executorService.shutdown(); } HTTPServer(HttpServer httpServer, CollectorRegistry registry, boolean daemon);  HTTPServer(InetSocketAddress addr, CollectorRegistry registry, boolean daemon);  HTTPServer(InetSocketAddress addr, CollectorRegistry registry);  HTTPServer(int port, boolean daemon);  HTTPServer(int port);  HTTPServer(String host, int port, boolean daemon);  HTTPServer(String host, int port); void stop(); int getPort(); }
HTTPServer { public void stop() { server.stop(0); executorService.shutdown(); } HTTPServer(HttpServer httpServer, CollectorRegistry registry, boolean daemon);  HTTPServer(InetSocketAddress addr, CollectorRegistry registry, boolean daemon);  HTTPServer(InetSocketAddress addr, CollectorRegistry registry);  HTTPServer(int port, boolean daemon);  HTTPServer(int port);  HTTPServer(String host, int port, boolean daemon);  HTTPServer(String host, int port); void stop(); int getPort();  }