Skip to content

Commit 590b8c4

Browse files
committed
修复单元测试
1 parent 58348ee commit 590b8c4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImplTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
package me.chanjar.weixin.cp.api.impl;
22

33
import com.google.inject.Inject;
4-
import me.chanjar.weixin.common.exception.WxErrorException;
54
import me.chanjar.weixin.cp.api.ApiTestModule;
65
import me.chanjar.weixin.cp.api.WxCpService;
76
import me.chanjar.weixin.cp.bean.WxCpDepart;
8-
import org.testng.annotations.Guice;
9-
import org.testng.annotations.Test;
7+
import org.testng.annotations.*;
108

119
import java.util.List;
1210

@@ -31,7 +29,7 @@ public void testCreate() throws Exception {
3129
WxCpDepart cpDepart = new WxCpDepart();
3230
cpDepart.setName("子部门" + System.currentTimeMillis());
3331
cpDepart.setParentId(1);
34-
cpDepart.setOrder(1);
32+
cpDepart.setOrder(1L);
3533
Integer departId = this.wxCpService.getDepartmentService().create(cpDepart);
3634
System.out.println(departId);
3735
}

0 commit comments

Comments
 (0)