1
0
mirror of synced 2026-02-21 13:36:26 +08:00

#813 企业微信中部门id类型改为Long,以容纳更大的数值

This commit is contained in:
Binary Wang
2018-10-28 19:49:46 +08:00
parent 732a38bf46
commit 1810884787
5 changed files with 54 additions and 37 deletions

View File

@@ -1,15 +1,15 @@
package me.chanjar.weixin.cp.api.impl;
import java.util.List;
import org.testng.annotations.*;
import com.google.inject.Inject;
import me.chanjar.weixin.cp.api.ApiTestModule;
import me.chanjar.weixin.cp.api.WxCpService;
import me.chanjar.weixin.cp.bean.WxCpDepart;
import org.testng.annotations.*;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
import static org.testng.Assert.*;
/**
* <pre>
@@ -29,7 +29,7 @@ public class WxCpDepartmentServiceImplTest {
public void testCreate() throws Exception {
WxCpDepart cpDepart = new WxCpDepart();
cpDepart.setName("子部门" + System.currentTimeMillis());
cpDepart.setParentId(1);
cpDepart.setParentId(1L);
cpDepart.setOrder(1L);
Integer departId = this.wxCpService.getDepartmentService().create(cpDepart);
System.out.println(departId);
@@ -45,7 +45,7 @@ public class WxCpDepartmentServiceImplTest {
}
@Test(dataProvider = "departIds")
public void testList(Integer id) throws Exception {
public void testList(Long id) throws Exception {
System.out.println("=================获取部门");
List<WxCpDepart> departList = this.wxCpService.getDepartmentService().list(id);
assertThat(departList).isNotEmpty();