From f7b72284a04150b17aba91994ddf9765e9c7ed2f Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Tue, 21 Nov 2023 14:13:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86):?= =?UTF-8?q?=20=E6=8F=92=E4=BB=B6=E7=AE=A1=E7=90=86=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/system/controller/PluginControllerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/system-setting/src/test/java/io/metersphere/system/controller/PluginControllerTests.java b/backend/services/system-setting/src/test/java/io/metersphere/system/controller/PluginControllerTests.java index 66250e6070..30700274d5 100644 --- a/backend/services/system-setting/src/test/java/io/metersphere/system/controller/PluginControllerTests.java +++ b/backend/services/system-setting/src/test/java/io/metersphere/system/controller/PluginControllerTests.java @@ -316,7 +316,7 @@ public class PluginControllerTests extends BaseTest { MvcResult mvcResult = this.requestGetWithOkAndReturn(DEFAULT_LIST); // 校验数据是否正确 List pluginList = getResultDataArray(mvcResult, PluginDTO.class); - Assertions.assertEquals(3, pluginList.size()); + Assertions.assertEquals(pluginMapper.selectByExample(new PluginExample()).size(), pluginList.size()); // 获取数据库数据 List pluginIds = pluginList.stream().map(PluginDTO::getId).toList();