From 31c785176c56447016893f303790da9247ed6be0 Mon Sep 17 00:00:00 2001 From: Xin Zheng Date: Thu, 18 Jan 2024 10:59:39 +0700 Subject: [PATCH] renamed function --- .../redisques/handler/RedisquesHttpRequestHandlerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/swisspush/redisques/handler/RedisquesHttpRequestHandlerTest.java b/src/test/java/org/swisspush/redisques/handler/RedisquesHttpRequestHandlerTest.java index 1d383f7..565e7f4 100644 --- a/src/test/java/org/swisspush/redisques/handler/RedisquesHttpRequestHandlerTest.java +++ b/src/test/java/org/swisspush/redisques/handler/RedisquesHttpRequestHandlerTest.java @@ -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 { @@ -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;