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 1
1
package me .chanjar .weixin .mp .api .impl ;
2
2
3
- import java .util .List ;
4
-
5
- import org .testng .Assert ;
6
- import org .testng .annotations .Guice ;
7
- import org .testng .annotations .Test ;
8
-
9
3
import com .google .inject .Inject ;
10
-
11
4
import me .chanjar .weixin .mp .api .ApiTestModule ;
12
5
import me .chanjar .weixin .mp .api .WxXmlMpInMemoryConfigStorage ;
13
6
import me .chanjar .weixin .mp .bean .tag .WxTagListUser ;
14
7
import 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 ;
15
13
16
14
/**
17
15
*
@@ -64,6 +62,14 @@ public void testTagListUser() throws Exception {
64
62
Assert .assertNotNull (res );
65
63
}
66
64
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
+
67
73
@ Test
68
74
public void testBatchUntagging () throws Exception {
69
75
String [] openids = new String []{((WxXmlMpInMemoryConfigStorage ) this .wxService .getWxMpConfigStorage ()).getOpenid ()};
You can’t perform that action at this time.
0 commit comments