From 33351bfee84c257a6ad12df96e482904bee4be08 Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Mon, 15 Apr 2024 16:41:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=95=E8=AF=8D=E6=8B=BC=E5=86=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/api/dto/ApiParamConfig.java | 2 +- .../api/parser/jmeter/MsCommonElementConverter.java | 2 +- .../java/io/metersphere/api/service/ApiExecuteService.java | 2 +- .../api/service/scenario/ApiScenarioService.java | 2 +- .../api/controller/ApiScenarioControllerTests.java | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/ApiParamConfig.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/ApiParamConfig.java index 630881f8f6..77416a8dd1 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/ApiParamConfig.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/ApiParamConfig.java @@ -43,7 +43,7 @@ public class ApiParamConfig extends ParameterConfig { * value 为对应的接口协议 * 环境前后置忽略协议需要使用 */ - private Map, String> testElementClassProtocalMap = HashMap.newHashMap(0); + private Map, String> testElementClassProtocolMap = HashMap.newHashMap(0); @Override diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/MsCommonElementConverter.java b/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/MsCommonElementConverter.java index 9a91cdbfd3..49d20104e2 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/MsCommonElementConverter.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/MsCommonElementConverter.java @@ -116,7 +116,7 @@ public class MsCommonElementConverter extends AbstractJmeterElementConverter addApiScenarioSteps, List steps) { + private void assertGetApiScenarioSteps(List addApiScenarioSteps, List steps) { if (addApiScenarioSteps == null || steps == null) { Assertions.assertEquals(addApiScenarioSteps, null); Assertions.assertEquals(steps, null); @@ -1285,7 +1285,7 @@ public class ApiScenarioControllerTests extends BaseTest { ApiScenarioStepRequest stepRequest = (ApiScenarioStepRequest) addApiScenarioSteps.get(i); ApiScenarioStepDTO stepDTO = (ApiScenarioStepDTO) steps.get(i); Assertions.assertEquals(BeanUtils.copyBean(new ApiScenarioStepCommonDTO(), stepRequest), BeanUtils.copyBean(new ApiScenarioStepCommonDTO(), stepDTO)); - asserGetApiScenarioSteps(stepRequest.getChildren(), stepDTO.getChildren()); + assertGetApiScenarioSteps(stepRequest.getChildren(), stepDTO.getChildren()); } }