From cabc48cbbc68075c58f1c5140a597384c2dfc50d Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Mon, 2 Sep 2024 18:25:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=9C=80=E6=B1=82=E5=90=8C=E6=AD=A5=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E8=A6=86=E7=9B=96=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/FunctionalCaseDemandControllerTests.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/services/case-management/src/test/java/io/metersphere/functional/controller/FunctionalCaseDemandControllerTests.java b/backend/services/case-management/src/test/java/io/metersphere/functional/controller/FunctionalCaseDemandControllerTests.java index f660fd865d..b5ac039c7f 100644 --- a/backend/services/case-management/src/test/java/io/metersphere/functional/controller/FunctionalCaseDemandControllerTests.java +++ b/backend/services/case-management/src/test/java/io/metersphere/functional/controller/FunctionalCaseDemandControllerTests.java @@ -12,6 +12,7 @@ import io.metersphere.plugin.platform.dto.response.PlatformDemandDTO; import io.metersphere.plugin.platform.utils.PluginPager; import io.metersphere.project.domain.ProjectApplication; import io.metersphere.project.mapper.ProjectApplicationMapper; +import io.metersphere.project.service.ProjectApplicationService; import io.metersphere.sdk.constants.ProjectApplicationType; import io.metersphere.sdk.constants.SessionConstants; import io.metersphere.sdk.domain.OperationLog; @@ -74,6 +75,9 @@ public class FunctionalCaseDemandControllerTests extends BaseTest { private int mockServerHostPort; @Resource private ProjectApplicationMapper projectApplicationMapper; + @Resource + private ProjectApplicationService projectApplicationService; + private static final String URL_DEMAND_PAGE = "/functional/case/demand/page"; @@ -681,6 +685,9 @@ public class FunctionalCaseDemandControllerTests extends BaseTest { projectApplicationMapper.batchInsert(relatedConfigs); demandSyncService.syncPlatformDemandBySchedule("gyq_project-case-demand-test", "admin"); + + String demandPlatformId = projectApplicationService.getDemandPlatformId("gyq_project-case-demand-test"); + Assertions.assertTrue(StringUtils.isNotBlank(demandPlatformId)); } }