|
|
@@ -46,8 +46,7 @@ class VehicleSyncTaskTest {
|
|
46
|
46
|
private SysWorkorderService sysWorkorderService;
|
|
47
|
47
|
@Mock
|
|
48
|
48
|
private SysIndicatorsService sysIndicatorsService;
|
|
49
|
|
- @Mock
|
|
50
|
|
- private SysCompanyService sysCompanyService;
|
|
|
49
|
+
|
|
51
|
50
|
@Mock
|
|
52
|
51
|
private RestTemplate restTemplate;
|
|
53
|
52
|
@Mock
|
|
|
@@ -181,17 +180,6 @@ class VehicleSyncTaskTest {
|
|
181
|
180
|
verify(sysrealtimeService, never()).createrealtime(anyString());
|
|
182
|
181
|
}
|
|
183
|
182
|
|
|
184
|
|
-// @Test
|
|
185
|
|
-// @DisplayName("insertIndicators: 公司列表为空时不应抛异常")
|
|
186
|
|
-// void insertIndicators_emptyCompanyList_noException() {
|
|
187
|
|
-// when(valueOps.setIfAbsent(anyString(), eq("1"), anyLong(), any())).thenReturn(true);
|
|
188
|
|
-// when(sysCompanyService.selectcompany()).thenReturn(Collections.emptyList());
|
|
189
|
|
-// when(stringRedisTemplate.delete(anyString())).thenReturn(true);
|
|
190
|
|
-//
|
|
191
|
|
-// task.insertIndicators();
|
|
192
|
|
-//
|
|
193
|
|
-// verify(sysWorkorderService, never()).selectworkordercount(anyString(), anyString());
|
|
194
|
|
-// }
|
|
195
|
183
|
|
|
196
|
184
|
@Test
|
|
197
|
185
|
@DisplayName("webhook 调用失败时不应中断主流程")
|