Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
przemkaczmarek committed Jan 8, 2025
1 parent b7c2949 commit 826a103
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,27 +228,6 @@ public void makeBidsShouldReturnVideoBidIfMTypeIsVideo() throws JsonProcessingEx
.containsOnly(BidderBid.of(Bid.builder().impid("123").mtype(2).build(), video, "USD"));
}

@Test
public void makeBidsShouldThrowErrorWhenMediaTypeIsMissing() throws JsonProcessingException {
// given
final BidderCall<BidRequest> httpCall = givenHttpCall(BidRequest.builder()
.imp(singletonList(Imp.builder().id("123").build()))
.build(),
mapper.writeValueAsString(
givenBidResponse(bidBuilder -> bidBuilder.impid("123"))));

// when
final Result<List<BidderBid>> result = target.makeBids(httpCall, null);

// then
assertThat(result.getValue()).isEmpty();
assertThat(result.getErrors()).hasSize(1)
.allSatisfy(error -> {
assertThat(error.getMessage()).startsWith("Missing MType for bid: null");
assertThat(error.getType()).isEqualTo(BidderError.Type.bad_server_response);
});
}

@Test
public void makeHttpRequestsShouldSetAdditionalHeadersIfDeviceFieldsAreNotEmpty() {
// given
Expand Down

0 comments on commit 826a103

Please sign in to comment.