11package me .chanjar .weixin .mp .api .impl ;
22
3- import static org .junit .Assert .assertNotNull ;
4-
5- import java .math .BigDecimal ;
6- import java .util .List ;
7-
8- import org .testng .annotations .Guice ;
9- import org .testng .annotations .Test ;
10-
113import com .google .inject .Inject ;
12-
134import me .chanjar .weixin .common .exception .WxErrorException ;
145import me .chanjar .weixin .mp .api .ApiTestModule ;
156import me .chanjar .weixin .mp .bean .store .WxMpStoreBaseInfo ;
167import me .chanjar .weixin .mp .bean .store .WxMpStoreInfo ;
178import me .chanjar .weixin .mp .bean .store .WxMpStoreListResult ;
9+ import org .testng .annotations .Guice ;
10+ import org .testng .annotations .Test ;
11+
12+ import java .math .BigDecimal ;
13+ import java .util .List ;
14+
15+ import static org .junit .Assert .assertNotNull ;
1816
1917/**
2018 * @author 王彬 (Binary Wang)
@@ -28,18 +26,23 @@ public class WxMpStoreServiceImplTest {
2826
2927 /**
3028 * Test method for {@link me.chanjar.weixin.mp.api.impl.WxMpStoreServiceImpl#add(me.chanjar.weixin.mp.bean.store.WxMpStoreBaseInfo)}.
31- * @throws WxErrorException
29+ * @throws WxErrorException
3230 */
3331 public void testAdd () throws WxErrorException {
3432 this .wxMpService .getStoreService ()
3533 .add (WxMpStoreBaseInfo .builder ().businessName ("haha" ).branchName ("abc" )
36- .province ("aaa" ).district ("aaa" ).telephone ("122" ).address ("abc" )
37- .categories (new String [] { "美食,江浙菜" })
34+ .province ("aaa" ).district ("aaa" ).telephone ("122" ).address ("abc" ).categories (new String [] { "美食,江浙菜" })
3835 .longitude (new BigDecimal ("115.32375" ))
3936 .latitude (new BigDecimal ("25.097486" )).city ("aaa" ).offsetType (1 )
4037 .build ());
4138 }
4239
40+ public void testGet () throws WxErrorException {
41+ WxMpStoreBaseInfo result = this .wxMpService .getStoreService ().get ("291503654" );
42+ assertNotNull (result );
43+ System .err .println (result );
44+ }
45+
4346 public void testList () throws WxErrorException {
4447 WxMpStoreListResult result = this .wxMpService .getStoreService ().list (0 , 10 );
4548 assertNotNull (result );
0 commit comments