From 3fe26e24aeff8df97818403a37b7be4f00af4dbd Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Fri, 24 Nov 2023 15:38:23 +0800 Subject: [PATCH] =?UTF-8?q?test(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E8=A6=86=E7=9B=96=E7=BC=BA=E9=99=B7=E6=B5=8B=E8=AF=95=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/bug/controller/BugControllerTests.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/services/bug-management/src/test/java/io/metersphere/bug/controller/BugControllerTests.java b/backend/services/bug-management/src/test/java/io/metersphere/bug/controller/BugControllerTests.java index 04811b0ac3..6a1810b356 100644 --- a/backend/services/bug-management/src/test/java/io/metersphere/bug/controller/BugControllerTests.java +++ b/backend/services/bug-management/src/test/java/io/metersphere/bug/controller/BugControllerTests.java @@ -6,6 +6,7 @@ import io.metersphere.bug.dto.request.BugBatchRequest; import io.metersphere.bug.dto.request.BugBatchUpdateRequest; import io.metersphere.bug.dto.request.BugEditRequest; import io.metersphere.bug.dto.request.BugPageRequest; +import io.metersphere.bug.utils.CustomFieldUtils; import io.metersphere.project.dto.ProjectTemplateOptionDTO; import io.metersphere.sdk.util.JSON; import io.metersphere.system.base.BaseTest; @@ -400,6 +401,12 @@ public class BugControllerTests extends BaseTest { this.requestPost(BUG_BATCH_DELETE, request, status().isOk()); } + @Test + @Order(21) + void coverUtilsTest() throws Exception { + CustomFieldUtils.appendToMultipleCustomField(null, "test"); + } + /** * 生成请求过滤参数 * @return filter param