Skip to content

Commit ffde723

Browse files
committed
Revert "last tests"
This reverts commit 0f27474.
1 parent 0f27474 commit ffde723

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/test/java/org/prebid/server/bidder/generic/GenericBidderTest.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,23 @@ public void makeBidsShouldReturnAudioBidIfAudioIsPresentInRequestImp() throws Js
167167
.containsExactly(BidderBid.of(givenBid(), audio, null));
168168
}
169169

170+
@Test
171+
public void makeBidsShouldReturnBannerBidIfBannerAndVideoAndAudioAndNativeIsAbsentInRequestImp()
172+
throws JsonProcessingException {
173+
// given
174+
final BidderCall<BidRequest> httpCall = givenHttpCall(
175+
givenBidRequest(identity()),
176+
mapper.writeValueAsString(givenBidResponse(impBuilder -> impBuilder.impid("123"))));
177+
178+
// when
179+
final Result<List<BidderBid>> result = target.makeBids(httpCall, null);
180+
181+
// then
182+
assertThat(result.getErrors()).isEmpty();
183+
assertThat(result.getValue())
184+
.containsExactly(BidderBid.of(givenBid(), banner, null));
185+
}
186+
170187
private static BidRequest givenBidRequest(UnaryOperator<Imp.ImpBuilder> impCustomizer) {
171188
return givenBidRequest(identity(), impCustomizer);
172189
}

0 commit comments

Comments
 (0)