Skip to content

Commit 1322228

Browse files
committed
修复单元测试
1 parent 0e81206 commit 1322228

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

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

3+
import com.google.common.collect.Lists;
34
import com.google.inject.Inject;
45
import me.chanjar.weixin.cp.api.ApiTestModule;
56
import me.chanjar.weixin.cp.api.WxCpService;
67
import me.chanjar.weixin.cp.bean.Gender;
8+
import me.chanjar.weixin.cp.bean.WxCpInviteResult;
79
import me.chanjar.weixin.cp.bean.WxCpUser;
810
import org.apache.commons.lang3.builder.ToStringBuilder;
911
import org.apache.commons.lang3.builder.ToStringStyle;
@@ -88,9 +90,9 @@ public void testListSimpleByDepartment() throws Exception {
8890
}
8991

9092
@Test
91-
@Deprecated
9293
public void testInvite() throws Exception {
93-
int result = this.wxCpService.getUserService().invite(userId, "");
94+
WxCpInviteResult result = this.wxCpService.getUserService().invite(
95+
Lists.newArrayList(userId), null,null);
9496
System.out.println(result);
9597
}
9698

0 commit comments

Comments
 (0)