test_class.file: cord3c-server-http/src/test/java/io/cord3c/server/http/HttpServiceTest.java
test_class.identifier: HttpServiceTest
test_class.interfaces: implements WithAssertions
test_case.body: @Test
  	public void verifyHttpServerAvailable() throws IOException {
  		AppServiceHub serviceHub = Mockito.mock(AppServiceHub.class);
  		HttpService service = new HttpService(serviceHub);
  		try {
  			String url = "http://127.0.0.1:" + service.getPort() + "/hello";
  			HttpClient client = HttpClientBuilder.create().build();
  			HttpResponse response = client.execute(new HttpGet(url));
  			assertThat(response.getStatusLine().getStatusCode()).isEqualTo(200);
  			assertThat(EntityUtils.toString(response.getEntity())).isEqualTo("World");
  		} finally {
  			service.destroy();
  		}
  	}
test_case.class_method_signature: HttpServiceTest.verifyHttpServerAvailable()
test_case.full_signature: @Test public void verifyHttpServerAvailable()
test_case.identifier: verifyHttpServerAvailable
test_case.invocations: mock getPort build create execute isEqualTo assertThat getStatusCode getStatusLine isEqualTo assertThat toString getEntity destroy
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void verifyHttpServerAvailable()
focal_class.declarator: DEFAULT_PORT = 8080
focal_class.modifier: public static
focal_class.original_string: public static int DEFAULT_PORT = 8080;
focal_class.type: int
focal_class.var_name: DEFAULT_PORT
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: port
focal_class.modifier: @Getter
  	private
focal_class.original_string: @Getter
  	private int port;
focal_class.type: int
focal_class.var_name: port
focal_class.file: cord3c-server-http/src/main/java/io/cord3c/server/http/HttpService.java
focal_class.identifier: HttpService
focal_class.class_method_signature: HttpService.HttpService(AppServiceHub appServiceHub)
focal_class.full_signature: @SneakyThrows public  HttpService(AppServiceHub appServiceHub)
focal_class.identifier: HttpService
focal_class.modifiers: @SneakyThrows public
focal_class.parameters: (AppServiceHub appServiceHub)
focal_class.signature:  HttpService(AppServiceHub appServiceHub)
focal_class.class_method_signature: HttpService.existsClass(String name)
focal_class.full_signature: private boolean existsClass(String name)
focal_class.identifier: existsClass
focal_class.modifiers: private
focal_class.parameters: (String name)
focal_class.return: boolean
focal_class.signature: boolean existsClass(String name)
focal_class.class_method_signature: HttpService.destroy()
focal_class.full_signature: @SneakyThrows public void destroy()
focal_class.identifier: destroy
focal_class.modifiers: @SneakyThrows public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void destroy()
focal_class.superclass: extends SingletonSerializeAsToken
focal_method.body: @SneakyThrows
  	public void destroy() {
  		server.stop();
  		server.destroy();
  	}
focal_method.class_method_signature: HttpService.destroy()
focal_method.full_signature: @SneakyThrows public void destroy()
focal_method.identifier: destroy
focal_method.invocations: stop destroy
focal_method.modifiers: @SneakyThrows public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void destroy()