File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/test/java/org/prebid/server/bidder/generic Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments