浏览代码

修复单元测试

master
Binary Wang 7 年前
父节点
当前提交
590b8c4ea1
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. +2
    -4
      weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImplTest.java

+ 2
- 4
weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpDepartmentServiceImplTest.java 查看文件

@@ -1,12 +1,10 @@
package me.chanjar.weixin.cp.api.impl;

import com.google.inject.Inject;
import me.chanjar.weixin.common.exception.WxErrorException;
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.Guice;
import org.testng.annotations.Test;
import org.testng.annotations.*;

import java.util.List;

@@ -31,7 +29,7 @@ public class WxCpDepartmentServiceImplTest {
WxCpDepart cpDepart = new WxCpDepart();
cpDepart.setName("子部门" + System.currentTimeMillis());
cpDepart.setParentId(1);
cpDepart.setOrder(1);
cpDepart.setOrder(1L);
Integer departId = this.wxCpService.getDepartmentService().create(cpDepart);
System.out.println(departId);
}


正在加载...
取消
保存