refactor(接口测试): 优化mock返回结果

This commit is contained in:
wxg0103 2024-05-16 17:01:56 +08:00 committed by Craftsman
parent ccd055e621
commit c191e40a14
1 changed files with 2 additions and 1 deletions

View File

@ -247,7 +247,8 @@ public class MockServerService {
case "JSON" -> responseEntity(responseCode, responseBody.getJsonBody().getJsonWithSchema(), headers); case "JSON" -> responseEntity(responseCode, responseBody.getJsonBody().getJsonWithSchema(), headers);
case "XML" -> responseEntity(responseCode, responseBody.getXmlBody().getValue(), headers); case "XML" -> responseEntity(responseCode, responseBody.getXmlBody().getValue(), headers);
case "RAW" -> responseEntity(responseCode, responseBody.getRawBody().getValue(), headers); case "RAW" -> responseEntity(responseCode, responseBody.getRawBody().getValue(), headers);
default -> handleBinaryBody(responseBody, projectId, resourceId, isMock); case "BINARY" -> handleBinaryBody(responseBody, projectId, resourceId, isMock);
default -> responseEntity(responseCode, StringUtils.EMPTY, headers);
}; };
} }