File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -30,20 +30,32 @@ public class WxMpStoreServiceImplTest {
3030 */
3131 public void testAdd () throws WxErrorException {
3232 this .wxMpService .getStoreService ()
33- .add (WxMpStoreBaseInfo .builder ().businessName ("haha" ).branchName ("abc" )
34- .province ("aaa" ).district ("aaa" ).telephone ("122" ).address ("abc" ).categories (new String []{"美食,江浙菜" })
33+ .add (WxMpStoreBaseInfo .builder ()
34+ .businessName ("haha" )
35+ .branchName ("abc" )
36+ .province ("aaa" )
37+ .district ("aaa" )
38+ .telephone ("122" )
39+ .address ("abc" )
40+ .categories (new String []{"美食,江浙菜" })
3541 .longitude (new BigDecimal ("115.32375" ))
36- .latitude (new BigDecimal ("25.097486" )).city ("aaa" ).offsetType (1 )
42+ .latitude (new BigDecimal ("25.097486" ))
43+ .city ("aaa" )
3744 .build ());
3845 // 以下运行会抛异常
3946 this .wxMpService .getStoreService ().add (WxMpStoreBaseInfo .builder ().build ());
4047 }
4148
4249 public void testUpdate () throws WxErrorException {
4350 this .wxMpService .getStoreService ()
44- .update (WxMpStoreBaseInfo .builder ().poiId ("291503654" ).telephone ("020-12345678" )
45- .sid ("aaa" ).avgPrice (35 ).openTime ("8:00-20:00" ).special ("免费wifi,外卖服务" )
46- .introduction ("麦当劳是全球大型跨国连锁餐厅,1940 年创立于美国,在世界上大约拥有3 万间分店。主要售卖汉堡包,以及薯条、炸鸡、汽水、冰品、沙拉、水果等快餐食品" ).offsetType (1 )
51+ .update (WxMpStoreBaseInfo .builder ()
52+ .poiId ("291503654" )
53+ .telephone ("020-12345678" )
54+ .sid ("aaa" )
55+ .avgPrice (35 )
56+ .openTime ("8:00-20:00" )
57+ .special ("免费wifi,外卖服务" )
58+ .introduction ("麦当劳是全球大型跨国连锁餐厅,1940 年创立于美国,在世界上大约拥有3 万间分店。主要售卖汉堡包,以及薯条、炸鸡、汽水、冰品、沙拉、水果等快餐食品" )
4759 .build ());
4860 }
4961
You can’t perform that action at this time.
0 commit comments