增加用户标签添加接口

This commit is contained in:
BinaryWang
2016-09-02 19:21:27 +08:00
parent 9b0ab05b34
commit ce58afc5da
6 changed files with 190 additions and 46 deletions

View File

@@ -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());
}
}