From d725b5591f056b24c6d17ebb57c4da0fcff64b7a Mon Sep 17 00:00:00 2001 From: lan-yonghui Date: Mon, 25 Dec 2023 18:51:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E6=8E=A5=E5=8F=A3=E7=AE=A1=E7=90=86=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=20MOCK=20=E6=A8=A1=E5=9D=97=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=B5=8B=E8=AF=95=E7=AE=80=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ApiDefinitionMockControllerTests.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/backend/services/api-test/src/test/java/io/metersphere/api/controller/ApiDefinitionMockControllerTests.java b/backend/services/api-test/src/test/java/io/metersphere/api/controller/ApiDefinitionMockControllerTests.java index f0c72edbfe..18602d9776 100644 --- a/backend/services/api-test/src/test/java/io/metersphere/api/controller/ApiDefinitionMockControllerTests.java +++ b/backend/services/api-test/src/test/java/io/metersphere/api/controller/ApiDefinitionMockControllerTests.java @@ -16,7 +16,6 @@ import io.metersphere.api.dto.request.http.MsHTTPElement; import io.metersphere.api.mapper.ApiDefinitionMapper; import io.metersphere.api.mapper.ApiDefinitionMockConfigMapper; import io.metersphere.api.mapper.ApiDefinitionMockMapper; -import io.metersphere.api.mapper.ExtApiDefinitionMapper; import io.metersphere.api.service.ApiFileResourceService; import io.metersphere.api.utils.ApiDataUtils; import io.metersphere.plugin.api.spi.AbstractMsTestElement; @@ -236,15 +235,6 @@ public class ApiDefinitionMockControllerTests extends BaseTest { requestPostPermissionTest(PermissionConstants.PROJECT_API_DEFINITION_MOCK_ADD, ADD, request); } - private ApiDefinitionMockAddRequest createApiDefinitionMockAddRequest() { - ApiDefinitionMockAddRequest request = new ApiDefinitionMockAddRequest(); - request.setName("接口定义test"); - request.setProjectId(DEFAULT_PROJECT_ID); - request.setTags(new LinkedHashSet<>(List.of("tag1", "tag2"))); - request.setApiDefinitionId(DEFAULT_API_ID); - return request; - } - private ApiDefinitionMock assertAddApiDefinitionMock(Object request, MsHTTPElement msHttpElement, String id) { ApiDefinitionMock apiDefinitionMock = apiDefinitionMockMapper.selectByPrimaryKey(id); ApiDefinitionMockConfig apiDefinitionMockConfig = apiDefinitionMockConfigMapper.selectByPrimaryKey(id);