Skip to content

Commit

Permalink
renamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
Xin Zheng committed Jan 18, 2024
1 parent 244caa6 commit 31c7851
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,7 @@ private static void repeatVerify(TestContext context, ObjectMapper jsonMapper, J

for (int i = 0; i < repeat; i++) {
JsonNode receivedJson = jsonMapper.readTree(when().get(url).then().assertThat().statusCode(200).extract().asString());
if (verifyResponse(context, expectedStaticJson, receivedJson)) {
if (doesMatch(context, expectedStaticJson, receivedJson)) {
return;
}
try {
Expand All @@ -2022,7 +2022,7 @@ private static void repeatVerify(TestContext context, ObjectMapper jsonMapper, J
}
}

private static boolean verifyResponse(TestContext context, JsonNode expectedStaticJson, JsonNode receivedJson) {
private static boolean doesMatch(TestContext context, JsonNode expectedStaticJson, JsonNode receivedJson) {

if (expectedStaticJson.size() != receivedJson.size()) {
return false;
Expand Down

0 comments on commit 31c7851

Please sign in to comment.