mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-12 11:30:03 +08:00
增加用户标签添加接口
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package me.chanjar.weixin.mp.api.impl;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import me.chanjar.weixin.mp.api.ApiTestModule;
|
||||
import me.chanjar.weixin.mp.bean.tag.WxUserTag;
|
||||
import org.testng.Assert;
|
||||
import org.testng.annotations.Guice;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author binarywang(https://github.com/binarywang)
|
||||
* Created by Binary Wang on 2016/9/2.
|
||||
*/
|
||||
@Test
|
||||
@Guice(modules = ApiTestModule.class)
|
||||
public class WxMpUserTagServiceImplTest {
|
||||
@Inject
|
||||
protected WxMpServiceImpl wxService;
|
||||
|
||||
@Test
|
||||
public void testTagCreate() throws Exception {
|
||||
String tagName = "测试标签";
|
||||
WxUserTag res = this.wxService.getUserTagService().tagCreate(tagName);
|
||||
System.out.println(res);
|
||||
Assert.assertEquals(tagName, res.getName());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user