66import org .prebid .server .model .Endpoint ;
77
88import java .io .IOException ;
9- import java .util .List ;
109
1110import static com .github .tomakehurst .wiremock .client .WireMock .aResponse ;
1211import static com .github .tomakehurst .wiremock .client .WireMock .equalToJson ;
1312import static com .github .tomakehurst .wiremock .client .WireMock .post ;
1413import static com .github .tomakehurst .wiremock .client .WireMock .urlPathEqualTo ;
14+ import static java .util .Collections .singletonList ;
1515
1616public class EquativTest extends IntegrationTest {
1717
@@ -20,17 +20,17 @@ public void openrtb2AuctionShouldRespondWithBidsFromEquativ() throws IOException
2020 // given
2121 WIRE_MOCK_RULE .stubFor (post (urlPathEqualTo ("/smartadserver-exchange/api/bid" ))
2222 .withRequestBody (
23- equalToJson (jsonFrom ("openrtb2/smartadserver/alias /test-equativ-bid-request.json" )))
23+ equalToJson (jsonFrom ("openrtb2/equativ /test-equativ-bid-request.json" )))
2424 .willReturn (aResponse ()
25- .withBody (jsonFrom ("openrtb2/smartadserver/alias /test-equativ-bid-response.json" ))));
25+ .withBody (jsonFrom ("openrtb2/equativ /test-equativ-bid-response.json" ))));
2626
2727 // when
2828 final Response response = responseFor (
29- "openrtb2/smartadserver/alias /test-auction-equativ-request.json" ,
29+ "openrtb2/equativ /test-auction-equativ-request.json" ,
3030 Endpoint .openrtb2_auction );
3131
3232 // then
33- assertJsonEquals ("openrtb2/smartadserver/alias /test-auction-equativ-response.json" , response ,
34- List . of ( "smartadserver" , "equativ" ));
33+ assertJsonEquals ("openrtb2/equativ /test-auction-equativ-response.json" , response ,
34+ singletonList ( "equativ" ));
3535 }
3636}
0 commit comments