Authored by Lixiaodi

Merge branch 'dev_pay_million' of http://git.yoho.cn/ufo/yohoufo-fore into dev_pay_million

@@ -4,6 +4,7 @@ package com.yohoufo.order; @@ -4,6 +4,7 @@ package com.yohoufo.order;
4 import com.google.common.base.Splitter; 4 import com.google.common.base.Splitter;
5 import com.yohoufo.common.utils.RSAUtils; 5 import com.yohoufo.common.utils.RSAUtils;
6 import com.yohoufo.order.config.AlipayConfig; 6 import com.yohoufo.order.config.AlipayConfig;
  7 +import org.junit.Assert;
7 import org.junit.Test; 8 import org.junit.Test;
8 import org.junit.runner.RunWith; 9 import org.junit.runner.RunWith;
9 import org.junit.runners.BlockJUnit4ClassRunner; 10 import org.junit.runners.BlockJUnit4ClassRunner;
@@ -19,7 +20,7 @@ public class BaseTest { @@ -19,7 +20,7 @@ public class BaseTest {
19 String sign = "BEDIzBQ6n7fyb4uAxH4lQt/GI9aaEY1Pxhz5tTH6q18u3Sz3ERzlnOLv1mIeD5BrFPtjDFc0R4WlUJ0a4do2/1pHd6SBP7hD3U5olP2Dw+HjoFDzlKBAueiDqOgfPpyVtrks/oZ7n5bu4jh2+XVKfN3JkMyem++yoKqEN0kQywc="; 20 String sign = "BEDIzBQ6n7fyb4uAxH4lQt/GI9aaEY1Pxhz5tTH6q18u3Sz3ERzlnOLv1mIeD5BrFPtjDFc0R4WlUJ0a4do2/1pHd6SBP7hD3U5olP2Dw+HjoFDzlKBAueiDqOgfPpyVtrks/oZ7n5bu4jh2+XVKfN3JkMyem++yoKqEN0kQywc=";
20 String key = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB"; 21 String key = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB";
21 boolean res = RSAUtils.verify(preSignStr, sign, key, AlipayConfig.input_charset); 22 boolean res = RSAUtils.verify(preSignStr, sign, key, AlipayConfig.input_charset);
22 - System.out.println(res); 23 + Assert.assertTrue(res);
23 } 24 }
24 25
25 @Test 26 @Test