package com.brilliance.isc.esb.test.embfe;

public class GJG1test {

//    private static final OkHttpClient httpClient;

//    static {
//        httpClient = new OkHttpClient().
//                newBuilder().connectTimeout(60, TimeUnit.SECONDS)
//                .writeTimeout(60, TimeUnit.SECONDS)
//                .readTimeout(60, TimeUnit.SECONDS).build();
//    }


//    static void httpCall(Object object,String path) throws IOException {
//
//        ObjectMapper objectMapper = new ObjectMapper();
//        String content = objectMapper.writeValueAsString(object);
//
//        System.out.println(content);
//        RequestBody requestBody = RequestBody.create(content, MediaType.parse("application/json;charset=UTF-8"));
//        Request request = new Request.Builder()
//                .url("http://localhost:8081/webapi"+path)
//                .post(requestBody)
//                .build();
//        try {
//            Response response = httpClient.newCall(request).execute();
//
//            System.out.println(response.body().string());
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//    }

//    @Test
//    public void callGJG1() {
//        try {
//            ReqGJG1 reqGJG1 = new ReqGJG1();
//            reqGJG1.OWNREF = "LG3641200040AV";
//            httpCall(reqGJG1,"/SSTF/GJG1");
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//    }


}
