1
0
mirror of synced 2025-12-21 08:30:11 +08:00

#195 抽取门店管理相关接口请求URL为常量

This commit is contained in:
Binary Wang
2017-09-27 11:27:54 +08:00
parent ffcbb2a9eb
commit 972b07a20f
3 changed files with 16 additions and 27 deletions

View File

@@ -26,18 +26,17 @@ public class WxMpStoreServiceImplTest {
private WxMpService wxMpService;
/**
* Test method for {@link WxMpStoreServiceImpl#add(me.chanjar.weixin.mp.bean.store.WxMpStoreBaseInfo)}.
*
* @throws WxErrorException
* Test method for {@link WxMpStoreServiceImpl#add(WxMpStoreBaseInfo)}.
*/
public void testAdd() throws WxErrorException {
this.wxMpService.getStoreService().add(WxMpStoreBaseInfo.builder().build());
this.wxMpService.getStoreService()
.add(WxMpStoreBaseInfo.builder().businessName("haha").branchName("abc")
.province("aaa").district("aaa").telephone("122").address("abc").categories(new String[]{"美食,江浙菜"})
.longitude(new BigDecimal("115.32375"))
.latitude(new BigDecimal("25.097486")).city("aaa").offsetType(1)
.build());
// 以下运行会抛异常
this.wxMpService.getStoreService().add(WxMpStoreBaseInfo.builder().build());
}
public void testUpdate() throws WxErrorException {