Commit d16d20fc22cbcc104e15de11712bae778a779808
1 parent
a397a57b
修复 BpmTaskAssignRuleServiceImplTest 单测报错的问题
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-bpm/yudao-module-bpm-biz/src/test/java/cn/iocoder/yudao/module/bpm/service/definition/BpmTaskAssignRuleServiceImplTest.java
| ... | ... | @@ -103,7 +103,7 @@ public class BpmTaskAssignRuleServiceImplTest extends BaseDbUnitTest { |
| 103 | 103 | // mock 方法 |
| 104 | 104 | DeptRespDTO dept1 = randomPojo(DeptRespDTO.class, o -> o.setLeaderUserId(11L)); |
| 105 | 105 | DeptRespDTO dept2 = randomPojo(DeptRespDTO.class, o -> o.setLeaderUserId(22L)); |
| 106 | - when(deptApi.getDepts(eq(rule.getOptions()))).thenReturn(Arrays.asList(dept1, dept2)); | |
| 106 | + when(deptApi.getDeptList(eq(rule.getOptions()))).thenReturn(Arrays.asList(dept1, dept2)); | |
| 107 | 107 | mockGetUserMap(asSet(11L, 22L)); |
| 108 | 108 | |
| 109 | 109 | // 调用 | ... | ... |