File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
main/java/org/prebid/server/bidder/sparteo
test/java/org/prebid/server/bidder/sparteo Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ private ExtImpSparteo parseExtImp(Imp imp) {
103103 }
104104 }
105105
106- private ObjectNode modifyImpExt (Imp imp ) {
106+ private static ObjectNode modifyImpExt (Imp imp ) {
107107 final ObjectNode modifiedImpExt = imp .getExt ().deepCopy ();
108108 final ObjectNode sparteoNode = modifiedImpExt .putObject ("sparteo" );
109109 final JsonNode bidderJsonNode = modifiedImpExt .remove ("bidder" );
Original file line number Diff line number Diff line change 3939
4040public class SparteoBidderTest extends VertxTest {
4141
42- private static final String ENDPOINT_URL =
43- "https://test.sparteo.com/endpoint" ;
42+ private static final String ENDPOINT_URL = "https://test.sparteo.com/endpoint" ;
4443 private final SparteoBidder sparteoBidder = new SparteoBidder (ENDPOINT_URL , jacksonMapper );
4544
4645 @ Test
4746 public void creationShouldFailOnInvalidEndpointUrl () {
47+ // given
48+ final String invalidUrl = "invalid_url" ;
49+
50+ // when and then
4851 assertThatIllegalArgumentException ()
49- .isThrownBy (() -> new SparteoBidder ("invalid_url" , jacksonMapper ))
50- .withMessage ("URL supplied is not valid: invalid_url" );
52+ .isThrownBy (() -> new SparteoBidder (invalidUrl , jacksonMapper ))
53+ .withMessage ("URL supplied is not valid: " + invalidUrl );
5154 }
5255
5356 @ Test
You can’t perform that action at this time.
0 commit comments