Skip to content

Commit

Permalink
Remove unnecessary .hasSize()
Browse files Browse the repository at this point in the history
  • Loading branch information
yevhenii-viktorov committed Oct 25, 2021
1 parent e6c4e9c commit 862b1e8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,8 @@ public void shouldPassRequestWithExtPrebidToDefinedBidder() {
assertThat(prebid1).isNotNull();
final JsonNode bidders1 = prebid1.getBidders();
assertThat(bidders1).isNotNull();
assertThat(bidders1.fields()).toIterable().hasSize(1)
.containsExactlyInAnyOrder(entry("bidder", mapper.createObjectNode().put("test1", "test1")));
assertThat(bidders1.fields()).toIterable()
.containsOnly(entry("bidder", mapper.createObjectNode().put("test1", "test1")));

final ArgumentCaptor<BidderRequest> bidRequest2Captor = ArgumentCaptor.forClass(BidderRequest.class);
verify(httpBidderRequester).requestBids(same(bidder2), bidRequest2Captor.capture(), any(), any(), anyBoolean());
Expand All @@ -677,8 +677,8 @@ public void shouldPassRequestWithExtPrebidToDefinedBidder() {
assertThat(prebid2).isNotNull();
final JsonNode bidders2 = prebid2.getBidders();
assertThat(bidders2).isNotNull();
assertThat(bidders2.fields()).toIterable().hasSize(1)
.containsExactlyInAnyOrder(entry("bidder", mapper.createObjectNode().put("test2", "test2")));
assertThat(bidders2.fields()).toIterable()
.containsOnly(entry("bidder", mapper.createObjectNode().put("test2", "test2")));
}

@Test
Expand Down

0 comments on commit 862b1e8

Please sign in to comment.