File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 11package me .chanjar .weixin .mp .api .impl ;
22
3- import java .util .List ;
4-
5- import org .testng .Assert ;
6- import org .testng .annotations .Guice ;
7- import org .testng .annotations .Test ;
8-
93import com .google .inject .Inject ;
10-
114import me .chanjar .weixin .mp .api .ApiTestModule ;
125import me .chanjar .weixin .mp .api .WxXmlMpInMemoryConfigStorage ;
136import me .chanjar .weixin .mp .bean .tag .WxTagListUser ;
147import me .chanjar .weixin .mp .bean .tag .WxUserTag ;
8+ import org .testng .Assert ;
9+ import org .testng .annotations .Guice ;
10+ import org .testng .annotations .Test ;
11+
12+ import java .util .List ;
1513
1614/**
1715 *
@@ -64,6 +62,14 @@ public void testTagListUser() throws Exception {
6462 Assert .assertNotNull (res );
6563 }
6664
65+ @ Test
66+ public void testBatchTagging () throws Exception {
67+ String [] openids = new String []{((WxXmlMpInMemoryConfigStorage ) this .wxService .getWxMpConfigStorage ()).getOpenid ()};
68+ boolean res = this .wxService .getUserTagService ().batchTagging (this .tagId , openids );
69+ System .out .println (res );
70+ Assert .assertTrue (res );
71+ }
72+
6773 @ Test
6874 public void testBatchUntagging () throws Exception {
6975 String [] openids = new String []{((WxXmlMpInMemoryConfigStorage ) this .wxService .getWxMpConfigStorage ()).getOpenid ()};
You can’t perform that action at this time.
0 commit comments