Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private static List<BidderBid> bidsFromResponse(BidResponse bidResponse) {
.map(SeatBid::getBid)
.filter(Objects::nonNull)
.flatMap(Collection::stream)
.map(bid -> BidderBid.of(bid, BidType.banner, "mobkoi", bidResponse.getCur()))
.map(bid -> BidderBid.of(bid, BidType.banner, bidResponse.getCur()))
.toList();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public void makeBidsShouldReturnEmptyListIfBidResponseSeatBidIsNull() throws Jso
}

@Test
public void makeBidsShouldReturnBannerBidWithMobkoiSeat() throws JsonProcessingException {
public void makeBidsShouldReturnBannerBidWithoutSeatSoAliasesWork() throws JsonProcessingException {
// given
final BidResponse bannerBidResponse = givenBidResponse(bidBuilder -> bidBuilder.mtype(1).impid("123"));
final BidderCall<BidRequest> httpCall = givenHttpCall(mapper.writeValueAsString(bannerBidResponse));
Expand All @@ -211,7 +211,9 @@ public void makeBidsShouldReturnBannerBidWithMobkoiSeat() throws JsonProcessingE
assertThat(result.getValue())
.containsExactly(
BidderBid.of(
Bid.builder().mtype(1).impid("123").build(), banner, "mobkoi", "USD"));
Bid.builder().mtype(1).impid("123").build(), banner, "USD"));
assertThat(result.getValue()).allSatisfy(bidderBid ->
assertThat(bidderBid.getSeat()).isNull());
}

private static BidRequest givenBidRequest(UnaryOperator<Imp.ImpBuilder> impModifier) {
Expand Down