mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-02-15 04:48:18 +08:00
#895 小程序增加用户支付完获取UnionId的接口
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package cn.binarywang.wx.miniapp.api.impl;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.testng.annotations.*;
|
||||
|
||||
@@ -11,6 +9,7 @@ import cn.binarywang.wx.miniapp.test.ApiTestModule;
|
||||
import com.google.inject.Inject;
|
||||
import me.chanjar.weixin.common.error.WxErrorException;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.testng.Assert.*;
|
||||
|
||||
/**
|
||||
@@ -33,4 +32,9 @@ public class WxMaServiceImplTest {
|
||||
assertTrue(StringUtils.isNotBlank(after));
|
||||
}
|
||||
|
||||
@Test(expectedExceptions = {WxErrorException.class})
|
||||
public void testGetPaidUnionId() throws WxErrorException {
|
||||
final String unionId = this.wxService.getPaidUnionId("1", null, "3", "4");
|
||||
assertThat(unionId).isNotEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user