Skip to content

Commit

Permalink
fix spotless #2 (remove dependency)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed May 17, 2022
1 parent b66b263 commit e7eaa24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion ethereum/executionclient/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ dependencies {

integrationTestImplementation testFixtures(project(':infrastructure:json'))
integrationTestImplementation testFixtures(project(':infrastructure:time'))
integrationTestImplementation project(':data:serializer')
integrationTestImplementation 'com.squareup.okhttp3:mockwebserver'
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import tech.pegasys.teku.infrastructure.json.JsonUtil;
import tech.pegasys.teku.infrastructure.json.types.DeserializableTypeDefinition;
import tech.pegasys.teku.infrastructure.unsigned.UInt64;
import tech.pegasys.teku.provider.JsonProvider;
import tech.pegasys.teku.spec.Spec;
import tech.pegasys.teku.spec.SpecMilestone;
import tech.pegasys.teku.spec.TestSpecContext;
Expand All @@ -56,7 +55,7 @@
network = {Eth2Network.MAINNET})
class RestExecutionBuilderClientTest {

private static final JsonProvider JSON_PROVIDER = new JsonProvider();
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();

private static final Duration WAIT_FOR_CALL_COMPLETION = Duration.ofSeconds(10);

Expand Down Expand Up @@ -314,9 +313,8 @@ private <T> void verifyRequest(
assertThat(actualRequestBody.size()).isZero();
} else {
assertThat(actualRequestBody.size()).isNotZero();
ObjectMapper jsonMapper = JSON_PROVIDER.getObjectMapper();
assertThat(jsonMapper.readTree(expectedRequestBody.get()))
.isEqualTo(jsonMapper.readTree(actualRequestBody.readUtf8()));
assertThat(OBJECT_MAPPER.readTree(expectedRequestBody.get()))
.isEqualTo(OBJECT_MAPPER.readTree(actualRequestBody.readUtf8()));
}
} catch (InterruptedException | JsonProcessingException ex) {
Assertions.fail(ex);
Expand Down

0 comments on commit e7eaa24

Please sign in to comment.