暂时去掉jackson代码,用于展示数据的代码放在客户端比较好些

This commit is contained in:
BinaryWang
2016-09-09 14:03:18 +08:00
parent a1d5b3d0dc
commit ea35246d76
5 changed files with 6 additions and 44 deletions

View File

@@ -9,8 +9,6 @@ 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;
@@ -150,20 +148,20 @@ public class WxMpKefuServiceImplTest {
}
@Test
public void testKfMsgList() throws WxErrorException, JsonProcessingException {
public void testKfMsgList() throws WxErrorException {
Date startTime = DateTime.now().minusDays(1).toDate();
Date endTime = DateTime.now().minusDays(0).toDate();
WxMpKfMsgList result = this.wxService.getKefuService().kfMsgList(startTime,endTime, 1L, 50);
Assert.assertNotNull(result);
System.err.println(new ObjectMapper().writeValueAsString(result));
System.err.println(result);
}
@Test
public void testKfMsgListAll() throws WxErrorException, JsonProcessingException {
public void testKfMsgListAll() throws WxErrorException {
Date startTime = DateTime.now().minusDays(1).toDate();
Date endTime = DateTime.now().minusDays(0).toDate();
WxMpKfMsgList result = this.wxService.getKefuService().kfMsgList(startTime,endTime);
Assert.assertNotNull(result);
System.err.println(new ObjectMapper().writeValueAsString(result));
System.err.println(result);
}
}