diff --git a/src/test/java/org/prebid/server/bidder/kobler/KoblerBidderTest.java b/src/test/java/org/prebid/server/bidder/kobler/KoblerBidderTest.java index 54631266217..f9aa7f3e9e6 100644 --- a/src/test/java/org/prebid/server/bidder/kobler/KoblerBidderTest.java +++ b/src/test/java/org/prebid/server/bidder/kobler/KoblerBidderTest.java @@ -63,7 +63,7 @@ public void creationShouldFailOnInvalidEndpointUrl() { @Test public void makeHttpRequestsShouldReturnErrorIfNoValidImps() { // Given - BidRequest bidRequest = BidRequest.builder() + final BidRequest bidRequest = BidRequest.builder() .imp(singletonList(Imp.builder() .bidfloor(BigDecimal.ONE) .bidfloorcur("EUR") @@ -75,7 +75,7 @@ public void makeHttpRequestsShouldReturnErrorIfNoValidImps() { .thenThrow(new PreBidException("Currency conversion failed")); // When - Result>> result = target.makeHttpRequests(bidRequest); + final Result>> result = target.makeHttpRequests(bidRequest); // Then assertThat(result.getErrors()).hasSize(1) @@ -85,10 +85,10 @@ public void makeHttpRequestsShouldReturnErrorIfNoValidImps() { @Test public void makeHttpRequestsShouldReturnErrorIfNoImps() { // Given - BidRequest bidRequest = BidRequest.builder().imp(emptyList()).build(); + final BidRequest bidRequest = BidRequest.builder().imp(emptyList()).build(); // When - Result>> result = target.makeHttpRequests(bidRequest); + final Result>> result = target.makeHttpRequests(bidRequest); // Then assertThat(result.getErrors()).hasSize(1) @@ -98,7 +98,7 @@ public void makeHttpRequestsShouldReturnErrorIfNoImps() { @Test public void makeHttpRequestsShouldConvertBidFloorCurrency() { // Given - BidRequest bidRequest = givenBidRequest(imp -> imp + final BidRequest bidRequest = givenBidRequest(imp -> imp .bidfloor(BigDecimal.ONE) .bidfloorcur("EUR")); @@ -106,7 +106,7 @@ public void makeHttpRequestsShouldConvertBidFloorCurrency() { .thenReturn(BigDecimal.TEN); // When - Result>> result = target.makeHttpRequests(bidRequest); + final Result>> result = target.makeHttpRequests(bidRequest); // Then assertThat(result.getErrors()).isEmpty(); @@ -118,11 +118,11 @@ public void makeHttpRequestsShouldConvertBidFloorCurrency() { @Test public void makeHttpRequestsShouldUseDevEndpointWhenTestModeEnabled() { // Given - BidRequest bidRequest = givenBidRequest(imp -> imp + final BidRequest bidRequest = givenBidRequest(imp -> imp .ext(mapper.valueToTree(ExtPrebid.of(null, ExtImpKobler.of(true))))); // When - Result>> result = target.makeHttpRequests(bidRequest); + final Result>> result = target.makeHttpRequests(bidRequest); // Then assertThat(result.getValue()).hasSize(1); @@ -132,11 +132,11 @@ public void makeHttpRequestsShouldUseDevEndpointWhenTestModeEnabled() { @Test public void makeHttpRequestsShouldAddUsdToCurrenciesIfMissing() { // Given - BidRequest bidRequest = givenBidRequest(identity()) + final BidRequest bidRequest = givenBidRequest(identity()) .toBuilder().cur(singletonList("EUR")).build(); // When - Result>> result = target.makeHttpRequests(bidRequest); + final Result>> result = target.makeHttpRequests(bidRequest); // Then assertThat(result.getValue().get(0).getPayload().getCur()) @@ -146,10 +146,10 @@ public void makeHttpRequestsShouldAddUsdToCurrenciesIfMissing() { @Test public void makeBidsShouldReturnErrorIfResponseBodyIsInvalid() { // Given - BidderCall httpCall = givenHttpCall(); + final BidderCall httpCall = givenHttpCall(); // When - Result> result = target.makeBids(httpCall, BidRequest.builder().build()); + final Result> result = target.makeBids(httpCall, BidRequest.builder().build()); // Then assertThat(result.getErrors()).hasSize(1) @@ -162,10 +162,10 @@ public void makeBidsShouldReturnErrorIfResponseBodyIsInvalid() { @Test public void makeBidsShouldReturnBidsWithCorrectTypes() throws JsonProcessingException { // Given - ObjectNode bidExt = mapper.createObjectNode() + final ObjectNode bidExt = mapper.createObjectNode() .set("prebid", mapper.createObjectNode().put("type", "banner")); - BidderCall httpCall = givenHttpCall( + final BidderCall httpCall = givenHttpCall( BidResponse.builder() .cur("USD") .seatbid(singletonList(SeatBid.builder() @@ -177,7 +177,7 @@ public void makeBidsShouldReturnBidsWithCorrectTypes() throws JsonProcessingExce .build()); // When - Result> result = target.makeBids(httpCall, BidRequest.builder().build()); + final Result> result = target.makeBids(httpCall, BidRequest.builder().build()); // Then assertThat(result.getErrors()).isEmpty(); @@ -189,12 +189,12 @@ public void makeBidsShouldReturnBidsWithCorrectTypes() throws JsonProcessingExce @Test public void extractTestModeShouldReturnTrueWhenImpExtHasTestTrue() { // Given - Imp imp = Imp.builder() + final Imp imp = Imp.builder() .ext(mapper.valueToTree(ExtPrebid.of(null, ExtImpKobler.of(true)))) .build(); // When - boolean testMode = target.extractTestMode(imp); + final boolean testMode = target.extractTestMode(imp); // Then assertThat(testMode).isTrue();