@@ -0,0 +1,2497 @@
+package org.hive;%0A%0Aimport junit.framework.Test;%0Aimport junit.framework.TestCase;%0Aimport junit.framework.TestSuite;%0Aimport org.hive.common.pay.Payable;%0Aimport org.hive.common.pay.PreBusinessHandler;%0Aimport org.hive.common.proxy.ProxyPayHandler;%0Aimport org.hive.common.service.PayHandler;%0Aimport org.hive.common.util.HttpKit;%0Aimport org.hive.common.util.StringUtil;%0Aimport org.hive.weChat.entity.PayRequestParams;%0Aimport org.hive.weChat.enumeration.WeChatPayTypeEnum;%0A%0A/**%0A * Unit test for simple App.%0A */%0Apublic class AppTest%0A        extends TestCase %7B%0A    /**%0A     * Create the test case%0A     *%0A     * @param testName name of the test case%0A     */%0A    public AppTest(String testName) %7B%0A        super(testName);%0A    %7D%0A%0A    /**%0A     * @return the suite of tests being tested%0A     */%0A    public static Test suite() %7B%0A        return new TestSuite(AppTest.class);%0A    %7D%0A%0A    /**%0A     * Rigourous Test :-)%0A     */%0A    public void testApp() %7B%0A%0A        PayRequestParams test = new PayRequestParams();%0A        test.setAppid(%22wxd930ea5d5a258f4f%22);%0A        test.setMch_id(%2210000100%22);%0A        test.setBody(%22test%22);%0A        test.setDevice_info(%221000%22);%0A        test.setNonce_str(%22ibuaiVcKdpRxkhJA%22);%0A        PayHandler payHandler = new PayHandler(WeChatPayTypeEnum.APP, test);%0A        PreBusinessHandler preBusinessHandler = new PreBusinessHandler() %7B%0A            @Override%0A            public Object prehandler() %7B%0A                System.out.println(%22%E5%BC%80%E5%A7%8B%E5%A4%84%E7%90%86%E9%A2%84%E5%A4%84%E7%90%86%E4%BB%BB%E5%8A%A1%22);%0A                return true;%0A            %7D%0A        %7D;%0A        ProxyPayHandler proxyPayHandler = new ProxyPayHandler(payHandler,preBusinessHandler);%0A        Payable payable = proxyPayHandler.initProxy();%0A        payable.unifiedOrder();%0A    %7D%0A%0A    public void testA() %7B%0A        String E = StringUtil.encryptBasedDes(%22%E5%90%B4%E4%BA%9A%E5%A5%87%22);%0A        System.out.println(E);%0A        System.out.println(StringUtil.decryptBasedDes(E));%0A    %7D%0A%0A    public void testB() %7B%0A        String url = %22https://way.jd.com/he/freeweather%22;%0A        String s = HttpKit.httpPost(url, %22city=zhengzhou&appkey=86ecfe69876b60bdbc1e67f9a3c77462%22);%0A        System.out.println(s);%0A    %7D%0A%0A    public void testc() %7B%0A        String xml = %22%3Cxml%3E%5Cn%22 +%0A                %22    %3CstringName%3Ejack%3C/stringName%3E%5Cn%22 +%0A                %22    %3Cage%3E18%3C/age%3E%5Cn%22 +%0A                %22    %3Caddress%3E%E6%B2%B3%E5%8D%97%E9%83%91%E5%B7%9E%3C/address%3E%5Cn%22 +%0A                %22    %3Cdescription%3E%3C!%5BCDATA%5B%3Ctest demo%3E%5D%5D%3E%3C/description%3E%5Cn%22 +%0A                %22%3C/xml%3E%22;%0A        System.out.println(StringUtil.XMLToMap(xml));%0A    %7D%0A%0A    public void testD() %7B%0A%0A    %7D%0A%7D%0A

Revert "删除目录src/test/java/org/hive"