Skip to content

Commit ff80104

Browse files
committed
清理一些代码
1 parent fe9ed76 commit ff80104

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/request/WxMpKfAccountRequest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.io.Serializable;
44

5-
import org.apache.commons.codec.digest.Md5Crypt;
65
import org.apache.commons.lang3.builder.ToStringBuilder;
76

87
import com.google.gson.annotations.SerializedName;
@@ -72,19 +71,16 @@ public static class Builder {
7271
private String nickName;
7372
private String inviteWx;
7473

75-
@SuppressWarnings("hiding")
7674
public Builder kfAccount(String kfAccount) {
7775
this.kfAccount = kfAccount;
7876
return this;
7977
}
8078

81-
@SuppressWarnings("hiding")
8279
public Builder nickName(String nickName) {
8380
this.nickName = nickName;
8481
return this;
8582
}
8683

87-
@SuppressWarnings("hiding")
8884
public Builder inviteWx(String inviteWx) {
8985
this.inviteWx = inviteWx;
9086
return this;

weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpKefuServiceImplTest.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,28 @@
33
import java.io.File;
44
import java.util.Date;
55

6-
import ch.qos.logback.classic.BasicConfigurator;
7-
import com.fasterxml.jackson.core.JsonProcessingException;
8-
import com.fasterxml.jackson.databind.ObjectMapper;
9-
import me.chanjar.weixin.mp.bean.kefu.result.*;
106
import org.joda.time.DateTime;
117
import org.testng.Assert;
128
import org.testng.annotations.DataProvider;
139
import org.testng.annotations.Guice;
1410
import org.testng.annotations.Test;
1511

12+
import com.fasterxml.jackson.core.JsonProcessingException;
13+
import com.fasterxml.jackson.databind.ObjectMapper;
1614
import com.google.inject.Inject;
1715

1816
import me.chanjar.weixin.common.exception.WxErrorException;
1917
import me.chanjar.weixin.mp.api.ApiTestModule;
2018
import me.chanjar.weixin.mp.api.ApiTestModule.WxXmlMpInMemoryConfigStorage;
2119
import me.chanjar.weixin.mp.api.WxMpServiceImpl;
2220
import me.chanjar.weixin.mp.bean.kefu.request.WxMpKfAccountRequest;
21+
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfInfo;
22+
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfList;
23+
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfMsgList;
24+
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfOnlineList;
25+
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfSessionGetResult;
26+
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfSessionList;
27+
import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfSessionWaitCaseList;
2328

2429
/**
2530
* 测试客服相关接口
@@ -121,7 +126,7 @@ public void testKfSessionClose(String kfAccount, String openid)
121126
}
122127

123128
@Test(dataProvider = "getKfAccountAndOpenid")
124-
public void testKfSessionGet(@SuppressWarnings("unused") String kfAccount,
129+
public void testKfSessionGet(String kfAccount,
125130
String openid) throws WxErrorException {
126131
WxMpKfSessionGetResult result = this.wxService.getKefuService()
127132
.kfSessionGet(openid);

0 commit comments

Comments
 (0)