Skip to content

Commit

Permalink
Metax: Update bidder (#3631)
Browse files Browse the repository at this point in the history
  • Loading branch information
przemkaczmarek committed Jan 7, 2025
1 parent 8af285e commit 54b748b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,19 +395,19 @@ private String givenBidResponse(UnaryOperator<Bid.BidBuilder> bidCustomizer) thr
.build());
}

private static String givenBidResponse(Bid... bids) throws JsonProcessingException {
return mapper.writeValueAsString(BidResponse.builder()
.seatbid(singletonList(SeatBid.builder().bid(asList(bids)).build()))
.build());
}

private static BidderCall<BidRequest> givenHttpCall(String body) {
return BidderCall.succeededHttp(
HttpRequest.<BidRequest>builder().payload(null).build(),
HttpResponse.of(200, null, body),
null);
}

private static String givenBidResponse(Bid... bids) throws JsonProcessingException {
return mapper.writeValueAsString(BidResponse.builder()
.seatbid(singletonList(SeatBid.builder().bid(asList(bids)).build()))
.build());
}

private static Bid givenBid(UnaryOperator<Bid.BidBuilder> bidCustomizer) {
return bidCustomizer.apply(Bid.builder()).build();
}
Expand Down

0 comments on commit 54b748b

Please sign in to comment.