|
|
@@ -1,5 +1,6 @@
|
|
|
package com.zksy.web.controller.cockpit;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
import com.zksy.WaterSupply.WaterPlantInfo.domain.WaterPlantInfo;
|
|
|
import com.zksy.WaterSupply.WaterPlantInfo.service.IWaterPlantInfoService;
|
|
|
import com.zksy.WaterSupply.WaterPumpStation.domain.PumpStationType;
|
|
|
@@ -23,6 +24,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
import static org.junit.jupiter.api.Assertions.assertFalse;
|
|
|
import static org.junit.jupiter.api.Assertions.assertNull;
|
|
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
|
|
+import static org.mockito.ArgumentMatchers.any;
|
|
|
import static org.mockito.Mockito.mock;
|
|
|
import static org.mockito.Mockito.when;
|
|
|
|
|
|
@@ -77,7 +79,7 @@ class BusinessCockpitInfrastructureOperatingInformationAdapterTest {
|
|
|
facility.setUpdateTime(LocalDateTime.parse("2026-09-02T09:56:00"));
|
|
|
|
|
|
when(plantService.list()).thenReturn(Collections.singletonList(plant));
|
|
|
- when(pumpStationService.list()).thenReturn(Collections.singletonList(pump));
|
|
|
+ when(pumpStationService.list(any(Wrapper.class))).thenReturn(Collections.singletonList(pump));
|
|
|
when(pipeNetworkBaseService.list()).thenReturn(Collections.singletonList(pipe));
|
|
|
when(engineeringFacilityService.list()).thenReturn(Collections.singletonList(facility));
|
|
|
|
|
|
@@ -119,7 +121,7 @@ class BusinessCockpitInfrastructureOperatingInformationAdapterTest {
|
|
|
PipeNetworkBase gas = pipe("GAS-PIPE", "燃气管线", "GAS", "500");
|
|
|
PipeNetworkBase unknown = pipe("UNKNOWN-PIPE", "未知管线", "99", "500");
|
|
|
when(plantService.list()).thenReturn(Collections.emptyList());
|
|
|
- when(pumpStationService.list()).thenReturn(Collections.emptyList());
|
|
|
+ when(pumpStationService.list(any(Wrapper.class))).thenReturn(Collections.emptyList());
|
|
|
when(pipeNetworkBaseService.list()).thenReturn(Arrays.asList(drainage, gas, unknown));
|
|
|
when(engineeringFacilityService.list()).thenReturn(Collections.emptyList());
|
|
|
|