Skip to content

Commit 458d349

Browse files
committed
add errors
1 parent 6cc5deb commit 458d349

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void makeBidsShouldReturnErrorIfResponseBodyCouldNotBeParsed() {
6868
final Result<List<BidderBid>> result = target.makeBids(httpCall, null);
6969

7070
// then
71-
assertThat(result.getErrors()).hasSize(1)
71+
assertThat(result.getErrors()).hasSize(0)
7272
.allSatisfy(error -> {
7373
assertThat(error.getType()).isEqualTo(BidderError.Type.bad_server_response);
7474
assertThat(error.getMessage()).startsWith("Failed to decode: Unrecognized token");
@@ -179,7 +179,7 @@ public void makeBidsShouldReturnBannerBidIfBannerAndVideoAndAudioAndNativeIsAbse
179179
final Result<List<BidderBid>> result = target.makeBids(httpCall, null);
180180

181181
// then
182-
assertThat(result.getErrors()).isEmpty();
182+
assertThat(result.getErrors()).isNotEmpty();
183183
assertThat(result.getValue())
184184
.containsExactly(BidderBid.of(givenBid(), banner, null));
185185
}

src/test/java/org/prebid/server/bidder/rubicon/RubiconBidderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public void makeHttpRequestsShouldFillMethodAndUrlAndExpectedHeaders() {
218218
final Result<List<HttpRequest<BidRequest>>> result = target.makeHttpRequests(bidRequest);
219219

220220
// then
221-
assertThat(result.getValue()).hasSize(1).element(0).isNotNull()
221+
assertThat(result.getValue()).hasSize(0).element(0).isNotNull()
222222
.returns(HttpMethod.POST, HttpRequest::getMethod)
223223
.returns(ENDPOINT_URL, HttpRequest::getUri);
224224
assertThat(result.getValue().getFirst().getHeaders()).isNotNull()

0 commit comments

Comments
 (0)