Ver a proveniência

清理一些代码

master
Binary Wang há 8 anos
ascendente
cometimento
ff801044c2
2 ficheiros alterados com 10 adições e 9 eliminações
  1. +0
    -4
      weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/request/WxMpKfAccountRequest.java
  2. +10
    -5
      weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpKefuServiceImplTest.java

+ 0
- 4
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/kefu/request/WxMpKfAccountRequest.java Ver ficheiro

@@ -2,7 +2,6 @@ package me.chanjar.weixin.mp.bean.kefu.request;

import java.io.Serializable;

import org.apache.commons.codec.digest.Md5Crypt;
import org.apache.commons.lang3.builder.ToStringBuilder;

import com.google.gson.annotations.SerializedName;
@@ -72,19 +71,16 @@ public class WxMpKfAccountRequest implements Serializable {
private String nickName;
private String inviteWx;

@SuppressWarnings("hiding")
public Builder kfAccount(String kfAccount) {
this.kfAccount = kfAccount;
return this;
}

@SuppressWarnings("hiding")
public Builder nickName(String nickName) {
this.nickName = nickName;
return this;
}

@SuppressWarnings("hiding")
public Builder inviteWx(String inviteWx) {
this.inviteWx = inviteWx;
return this;


+ 10
- 5
weixin-java-mp/src/test/java/me/chanjar/weixin/mp/api/impl/WxMpKefuServiceImplTest.java Ver ficheiro

@@ -3,16 +3,14 @@ package me.chanjar.weixin.mp.api.impl;
import java.io.File;
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.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.inject.Inject;

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.WxMpServiceImpl;
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")
public void testKfSessionGet(@SuppressWarnings("unused") String kfAccount,
public void testKfSessionGet(String kfAccount,
String openid) throws WxErrorException {
WxMpKfSessionGetResult result = this.wxService.getKefuService()
.kfSessionGet(openid);


Carregando…
Cancelar
Guardar