|
|
@ -71,7 +71,7 @@ public class EthEstimateGasIntegrationTest { |
|
|
|
|
|
|
|
|
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
|
|
|
|
|
|
|
|
assertThat(response).isEqualToComparingFieldByField(expectedResponse); |
|
|
|
assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
@ -92,7 +92,7 @@ public class EthEstimateGasIntegrationTest { |
|
|
|
|
|
|
|
|
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
|
|
|
|
|
|
|
|
assertThat(response).isEqualToComparingFieldByField(expectedResponse); |
|
|
|
assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
@ -114,7 +114,7 @@ public class EthEstimateGasIntegrationTest { |
|
|
|
|
|
|
|
|
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
|
|
|
|
|
|
|
|
assertThat(response).isEqualToComparingFieldByField(expectedResponse); |
|
|
|
assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
@ -136,7 +136,7 @@ public class EthEstimateGasIntegrationTest { |
|
|
|
|
|
|
|
|
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
|
|
|
|
|
|
|
|
assertThat(response).isEqualToComparingFieldByField(expectedResponse); |
|
|
|
assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
@ -158,7 +158,7 @@ public class EthEstimateGasIntegrationTest { |
|
|
|
new JsonRpcErrorResponse(null, JsonRpcError.TRANSACTION_UPFRONT_COST_EXCEEDS_BALANCE); |
|
|
|
new JsonRpcErrorResponse(null, JsonRpcError.TRANSACTION_UPFRONT_COST_EXCEEDS_BALANCE); |
|
|
|
|
|
|
|
|
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
assertThat(response).isEqualToComparingFieldByField(expectedResponse); |
|
|
|
assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
@ -170,7 +170,7 @@ public class EthEstimateGasIntegrationTest { |
|
|
|
|
|
|
|
|
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
final JsonRpcResponse response = method.response(request); |
|
|
|
|
|
|
|
|
|
|
|
assertThat(response).isEqualToComparingFieldByField(expectedResponse); |
|
|
|
assertThat(response).usingRecursiveComparison().isEqualTo(expectedResponse); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JsonRpcRequestContext requestWithParams(final Object... params) { |
|
|
|
private JsonRpcRequestContext requestWithParams(final Object... params) { |
|
|
|