mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 16:18:51 +08:00
清理一些代码
This commit is contained in:
parent
fe9ed76f6f
commit
ff801044c2
@ -2,7 +2,6 @@ package me.chanjar.weixin.mp.bean.kefu.request;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.commons.codec.digest.Md5Crypt;
|
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
@ -72,19 +71,16 @@ public class WxMpKfAccountRequest implements Serializable {
|
|||||||
private String nickName;
|
private String nickName;
|
||||||
private String inviteWx;
|
private String inviteWx;
|
||||||
|
|
||||||
@SuppressWarnings("hiding")
|
|
||||||
public Builder kfAccount(String kfAccount) {
|
public Builder kfAccount(String kfAccount) {
|
||||||
this.kfAccount = kfAccount;
|
this.kfAccount = kfAccount;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("hiding")
|
|
||||||
public Builder nickName(String nickName) {
|
public Builder nickName(String nickName) {
|
||||||
this.nickName = nickName;
|
this.nickName = nickName;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("hiding")
|
|
||||||
public Builder inviteWx(String inviteWx) {
|
public Builder inviteWx(String inviteWx) {
|
||||||
this.inviteWx = inviteWx;
|
this.inviteWx = inviteWx;
|
||||||
return this;
|
return this;
|
||||||
|
@ -3,16 +3,14 @@ package me.chanjar.weixin.mp.api.impl;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import ch.qos.logback.classic.BasicConfigurator;
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
||||||
import me.chanjar.weixin.mp.bean.kefu.result.*;
|
|
||||||
import org.joda.time.DateTime;
|
import org.joda.time.DateTime;
|
||||||
import org.testng.Assert;
|
import org.testng.Assert;
|
||||||
import org.testng.annotations.DataProvider;
|
import org.testng.annotations.DataProvider;
|
||||||
import org.testng.annotations.Guice;
|
import org.testng.annotations.Guice;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
|
|
||||||
import me.chanjar.weixin.common.exception.WxErrorException;
|
import me.chanjar.weixin.common.exception.WxErrorException;
|
||||||
@ -20,6 +18,13 @@ import me.chanjar.weixin.mp.api.ApiTestModule;
|
|||||||
import me.chanjar.weixin.mp.api.ApiTestModule.WxXmlMpInMemoryConfigStorage;
|
import me.chanjar.weixin.mp.api.ApiTestModule.WxXmlMpInMemoryConfigStorage;
|
||||||
import me.chanjar.weixin.mp.api.WxMpServiceImpl;
|
import me.chanjar.weixin.mp.api.WxMpServiceImpl;
|
||||||
import me.chanjar.weixin.mp.bean.kefu.request.WxMpKfAccountRequest;
|
import me.chanjar.weixin.mp.bean.kefu.request.WxMpKfAccountRequest;
|
||||||
|
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfInfo;
|
||||||
|
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfList;
|
||||||
|
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfMsgList;
|
||||||
|
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfOnlineList;
|
||||||
|
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfSessionGetResult;
|
||||||
|
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfSessionList;
|
||||||
|
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfSessionWaitCaseList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 测试客服相关接口
|
* 测试客服相关接口
|
||||||
@ -121,7 +126,7 @@ public class WxMpKefuServiceImplTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test(dataProvider = "getKfAccountAndOpenid")
|
@Test(dataProvider = "getKfAccountAndOpenid")
|
||||||
public void testKfSessionGet(@SuppressWarnings("unused") String kfAccount,
|
public void testKfSessionGet(String kfAccount,
|
||||||
String openid) throws WxErrorException {
|
String openid) throws WxErrorException {
|
||||||
WxMpKfSessionGetResult result = this.wxService.getKefuService()
|
WxMpKfSessionGetResult result = this.wxService.getKefuService()
|
||||||
.kfSessionGet(openid);
|
.kfSessionGet(openid);
|
||||||
|
Loading…
Reference in New Issue
Block a user