package cn.com.countrygarden.bi.main.util;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

public class HttpsUtilTest {
    /**
     * private static final String[] methods = {
     *         "GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE"
     *     };
     */
    @Test
    public void httpsRequest() {
        String post = HttpsUtil.httpsRequest("https://xsothers.bgy.com.cn/Api/ASMInterface/GetSignedDoc", "POST", "{\n" +
                "\"companyid\":\"3C877D40-DCB1-4304-AC50-242E032A761A\",\n" +
                "\"channelid\":\"PublicInfo\",\n" +
                "\"time\":\"1578619471\",\n" +
                "\"package\":\"ooTh58EGaF2LbLN3bqzzrM9e86q/P55PQwSe1W/0Ny55Tbvs70PRWY1eZ9Dhwd4ESl+ykW1i3rLhuJ3xkpo0kiBB0uoDYJg1\"\n" +
                "\n" +
                "}");
        System.out.println(post);
    }
}
