mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-11 19:07:09 +08:00
添加门店管理-创建门店的接口,单元测试仅测试格式,暂未通过测试
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* Copyright(c) 2011-2016 by UCredit Inc.
|
||||
* All Rights Reserved
|
||||
*/
|
||||
package me.chanjar.weixin.mp.api.impl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.testng.annotations.Guice;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
|
||||
import me.chanjar.weixin.common.exception.WxErrorException;
|
||||
import me.chanjar.weixin.mp.api.ApiTestModule;
|
||||
import me.chanjar.weixin.mp.bean.WxMpStoreBaseInfo;
|
||||
|
||||
/**
|
||||
* @author 王彬 (Binary Wang)
|
||||
*
|
||||
*/
|
||||
@Test
|
||||
@Guice(modules = ApiTestModule.class)
|
||||
public class WxMpStoreServiceImplTest {
|
||||
@Inject
|
||||
private WxMpServiceImpl wxMpService;
|
||||
|
||||
/**
|
||||
* Test method for {@link me.chanjar.weixin.mp.api.impl.WxMpStoreServiceImpl#add(me.chanjar.weixin.mp.bean.WxMpStoreBaseInfo)}.
|
||||
* @throws WxErrorException
|
||||
*/
|
||||
public void testAdd() throws WxErrorException {
|
||||
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());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user