From fa92d328d6cefbdf18e93d356958ea1bec5a9647 Mon Sep 17 00:00:00 2001 From: Sally MacFarlane Date: Mon, 10 May 2021 10:42:42 +1000 Subject: [PATCH] [MINOR] refactor out deprecation in test (#2231) * refactor out deprecation Signed-off-by: Sally MacFarlane --- .../methods/EthEstimateGasIntegrationTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/EthEstimateGasIntegrationTest.java b/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/EthEstimateGasIntegrationTest.java index 4bdc376fbe..943d1b3f2c 100644 --- a/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/EthEstimateGasIntegrationTest.java +++ b/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/EthEstimateGasIntegrationTest.java @@ -71,7 +71,7 @@ public class EthEstimateGasIntegrationTest { final JsonRpcResponse response = method.response(request); - assertThat(response).isEqualToComparingFieldByField(expectedResponse); + assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); } @Test @@ -92,7 +92,7 @@ public class EthEstimateGasIntegrationTest { final JsonRpcResponse response = method.response(request); - assertThat(response).isEqualToComparingFieldByField(expectedResponse); + assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); } @Test @@ -114,7 +114,7 @@ public class EthEstimateGasIntegrationTest { final JsonRpcResponse response = method.response(request); - assertThat(response).isEqualToComparingFieldByField(expectedResponse); + assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); } @Test @@ -136,7 +136,7 @@ public class EthEstimateGasIntegrationTest { final JsonRpcResponse response = method.response(request); - assertThat(response).isEqualToComparingFieldByField(expectedResponse); + assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); } @Test @@ -158,7 +158,7 @@ public class EthEstimateGasIntegrationTest { new JsonRpcErrorResponse(null, JsonRpcError.TRANSACTION_UPFRONT_COST_EXCEEDS_BALANCE); final JsonRpcResponse response = method.response(request); - assertThat(response).isEqualToComparingFieldByField(expectedResponse); + assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); } @Test @@ -170,7 +170,7 @@ public class EthEstimateGasIntegrationTest { final JsonRpcResponse response = method.response(request); - assertThat(response).isEqualToComparingFieldByField(expectedResponse); + assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); } private JsonRpcRequestContext requestWithParams(final Object... params) {