test_class.declarator: okHttpClient
test_class.modifier: private
test_class.original_string: private OkHttpClient okHttpClient ;
test_class.type: OkHttpClient
test_class.var_name: okHttpClient
test_class.file: cim-common/src/test/java/com/crossoverjie/cim/common/util/HttpClientTest.java
test_class.identifier: HttpClientTest
test_case.body: @Test
      public void call() throws IOException {
          JSONObject jsonObject = new JSONObject();
          jsonObject.put("msg", "hello");
          jsonObject.put("userId", 1586617710861L);
  
          HttpClient.call(okHttpClient,jsonObject.toString(),"http://127.0.0.1:8081/sendMsg") ;
      }
test_case.class_method_signature: HttpClientTest.call()
test_case.full_signature: @Test public void call()
test_case.identifier: call
test_case.invocations: put put call toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void call()
focal_class.declarator: mediaType = MediaType.parse("application/json")
focal_class.modifier: private static
focal_class.original_string: private static MediaType mediaType = MediaType.parse("application/json");
focal_class.type: MediaType
focal_class.var_name: mediaType
focal_class.file: cim-common/src/main/java/com/crossoverjie/cim/common/util/HttpClient.java
focal_class.identifier: HttpClient
focal_class.class_method_signature: HttpClient.call(OkHttpClient okHttpClient, String params, String url)
focal_class.full_signature: public static Response call(OkHttpClient okHttpClient, String params, String url)
focal_class.identifier: call
focal_class.modifiers: public static
focal_class.parameters: (OkHttpClient okHttpClient, String params, String url)
focal_class.return: Response
focal_class.signature: Response call(OkHttpClient okHttpClient, String params, String url)
focal_method.body: public static Response call(OkHttpClient okHttpClient, String params, String url) throws IOException {
          RequestBody requestBody = RequestBody.create(mediaType, params);
  
          Request request = new Request.Builder()
                  .url(url)
                  .post(requestBody)
                  .build();
  
          Response response = okHttpClient.newCall(request).execute();
          if (!response.isSuccessful()) {
              throw new IOException("Unexpected code " + response);
          }
  
          return response;
      }
focal_method.class_method_signature: HttpClient.call(OkHttpClient okHttpClient, String params, String url)
focal_method.full_signature: public static Response call(OkHttpClient okHttpClient, String params, String url)
focal_method.identifier: call
focal_method.invocations: create build post url execute newCall isSuccessful
focal_method.modifiers: public static
focal_method.parameters: (OkHttpClient okHttpClient, String params, String url)
focal_method.return: Response
focal_method.signature: Response call(OkHttpClient okHttpClient, String params, String url)