1111import static com .github .tomakehurst .wiremock .client .WireMock .equalToJson ;
1212import static com .github .tomakehurst .wiremock .client .WireMock .post ;
1313import static com .github .tomakehurst .wiremock .client .WireMock .urlPathEqualTo ;
14- import static java .util .Arrays .asList ;
1514import static java .util .Collections .singletonList ;
1615
1716public class SmartadserverTest extends IntegrationTest {
1817
19- private static final String SMARTADSERVER = "smartadserver" ;
20- private static final String EQUATIV_ALIAS = "equativ" ;
21-
2218 @ Test
2319 public void openrtb2AuctionShouldRespondWithBidsFromSmartadserver () throws IOException , JSONException {
2420 // given
@@ -33,25 +29,7 @@ public void openrtb2AuctionShouldRespondWithBidsFromSmartadserver() throws IOExc
3329
3430 // then
3531 assertJsonEquals ("openrtb2/smartadserver/test-auction-smartadserver-response.json" , response ,
36- singletonList (SMARTADSERVER ));
32+ singletonList ("smartadserver" ));
3733 }
3834
39- @ Test
40- public void openrtb2AuctionShouldRespondWithBidsFromEquativ () throws IOException , JSONException {
41- // given
42- WIRE_MOCK_RULE .stubFor (post (urlPathEqualTo ("/smartadserver-exchange/api/bid" ))
43- .withRequestBody (
44- equalToJson (jsonFrom ("openrtb2/smartadserver/alias/test-smartadserver-bid-request.json" )))
45- .willReturn (aResponse ()
46- .withBody (jsonFrom ("openrtb2/smartadserver/alias/test-smartadserver-bid-response.json" ))));
47-
48- // when
49- final Response response = responseFor (
50- "openrtb2/smartadserver/alias/test-auction-smartadserver-request.json" ,
51- Endpoint .openrtb2_auction );
52-
53- // then
54- assertJsonEquals ("openrtb2/smartadserver/alias/test-auction-smartadserver-response.json" , response ,
55- asList (SMARTADSERVER , EQUATIV_ALIAS ));
56- }
5735}
0 commit comments