woonsan commented on a change in pull request #660:
URL: https://github.com/apache/jmeter/pull/660#discussion_r757512558
##########
File path:
src/protocol/http/src/test/java/org/apache/jmeter/protocol/http/util/TestGraphQLRequestParamUtils.java
##########
@@ -99,7 +103,15 @@ void testInvalidGraphQLContentType(String contentType) {
@Test
void testToPostBodyString() throws Exception {
- assertEquals(EXPECTED_POST_BODY,
GraphQLRequestParamUtils.toPostBodyString(params));
+ final JsonNode expectedPostBodyJson =
objectMapper.readTree(EXPECTED_POST_BODY);
+ final JsonNode actualPostBodyJson =
objectMapper.readTree(GraphQLRequestParamUtils.toPostBodyString(params));
+
+
assertEquals(expectedPostBodyJson.get(GraphQLRequestParamUtils.OPERATION_NAME_FIELD),
+
actualPostBodyJson.get(GraphQLRequestParamUtils.OPERATION_NAME_FIELD));
Review comment:
Hi @vlsi ,
I tried to improve it using `@ParamterizedTest` in
9e63931ee11f206fa846bd8277bfe8b8bd6cb13d. Could you take a look? Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]