refactor(接口测试): 优化mock返回结果
This commit is contained in:
parent
ccd055e621
commit
c191e40a14
|
@ -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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue