🐛 补齐调度服务测试的车辆服务依赖
ManageWaybillServiceImpl 新增 ITransportVehicleService 后,五处测试的构造函数仍是旧参数, test-compile 直接失败;补上 mock 参数。
This commit is contained in:
+1
@@ -91,6 +91,7 @@ class ManageAdminHomeBadgeTest {
|
|||||||
mock(IDriverWaybillService.class),
|
mock(IDriverWaybillService.class),
|
||||||
tripQueryService,
|
tripQueryService,
|
||||||
mock(ILoadingManageService.class),
|
mock(ILoadingManageService.class),
|
||||||
|
mock(org.springblade.transport.service.ITransportVehicleService.class),
|
||||||
mock(MpUserDataScopeSupport.class));
|
mock(MpUserDataScopeSupport.class));
|
||||||
authUtil = mockStatic(AuthUtil.class);
|
authUtil = mockStatic(AuthUtil.class);
|
||||||
authUtil.when(AuthUtil::getUserRole).thenReturn("yewu");
|
authUtil.when(AuthUtil::getUserRole).thenReturn("yewu");
|
||||||
|
|||||||
+1
@@ -85,6 +85,7 @@ class ManageAdminHomeFeedTest {
|
|||||||
mock(IDriverWaybillService.class),
|
mock(IDriverWaybillService.class),
|
||||||
mock(ITripQueryService.class),
|
mock(ITripQueryService.class),
|
||||||
mock(ILoadingManageService.class),
|
mock(ILoadingManageService.class),
|
||||||
|
mock(org.springblade.transport.service.ITransportVehicleService.class),
|
||||||
mock(org.springblade.transport.support.MpUserDataScopeSupport.class));
|
mock(org.springblade.transport.support.MpUserDataScopeSupport.class));
|
||||||
when(exceptionService.list(ArgumentMatchers.<Wrapper<ExceptionDisposal>>any()))
|
when(exceptionService.list(ArgumentMatchers.<Wrapper<ExceptionDisposal>>any()))
|
||||||
.thenReturn(new ArrayList<>());
|
.thenReturn(new ArrayList<>());
|
||||||
|
|||||||
+1
@@ -102,6 +102,7 @@ class ManageTripListDetailTest {
|
|||||||
driverWaybillService,
|
driverWaybillService,
|
||||||
tripQueryService,
|
tripQueryService,
|
||||||
loadingManageService,
|
loadingManageService,
|
||||||
|
mock(org.springblade.transport.service.ITransportVehicleService.class),
|
||||||
mock(org.springblade.transport.support.MpUserDataScopeSupport.class));
|
mock(org.springblade.transport.support.MpUserDataScopeSupport.class));
|
||||||
when(exceptionDisposalService.list(ArgumentMatchers.<Wrapper<ExceptionDisposal>>any()))
|
when(exceptionDisposalService.list(ArgumentMatchers.<Wrapper<ExceptionDisposal>>any()))
|
||||||
.thenReturn(new ArrayList<>());
|
.thenReturn(new ArrayList<>());
|
||||||
|
|||||||
+1
@@ -66,6 +66,7 @@ class ManageWaybillBusinessStatusTest {
|
|||||||
mock(IDriverWaybillService.class),
|
mock(IDriverWaybillService.class),
|
||||||
mock(ITripQueryService.class),
|
mock(ITripQueryService.class),
|
||||||
mock(ILoadingManageService.class),
|
mock(ILoadingManageService.class),
|
||||||
|
mock(org.springblade.transport.service.ITransportVehicleService.class),
|
||||||
mock(org.springblade.transport.support.MpUserDataScopeSupport.class));
|
mock(org.springblade.transport.support.MpUserDataScopeSupport.class));
|
||||||
when(exceptionDisposalService.list(anyWrapper())).thenReturn(new ArrayList<>());
|
when(exceptionDisposalService.list(anyWrapper())).thenReturn(new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -91,6 +91,7 @@ class ManageWaybillOrgScopeTest {
|
|||||||
mock(IDriverWaybillService.class),
|
mock(IDriverWaybillService.class),
|
||||||
tripQueryService,
|
tripQueryService,
|
||||||
mock(ILoadingManageService.class),
|
mock(ILoadingManageService.class),
|
||||||
|
mock(org.springblade.transport.service.ITransportVehicleService.class),
|
||||||
mpUserDataScopeSupport);
|
mpUserDataScopeSupport);
|
||||||
when(exceptionDisposalService.list(ArgumentMatchers.<Wrapper<ExceptionDisposal>>any()))
|
when(exceptionDisposalService.list(ArgumentMatchers.<Wrapper<ExceptionDisposal>>any()))
|
||||||
.thenReturn(new ArrayList<>());
|
.thenReturn(new ArrayList<>());
|
||||||
|
|||||||
Reference in New Issue
Block a user