File tree Expand file tree Collapse file tree
src/test/java/org/prebid/server/it Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616public class ThreeSixtyPlayVidTest extends IntegrationTest {
1717
18+ private static final String BID_REQUEST_JSON = "openrtb2/360playvid/test-360playvid-bid-request.json" ;
19+ private static final String BID_RESPONSE_JSON = "openrtb2/360playvid/test-360playvid-bid-response.json" ;
20+ private static final String AUCTION_REQUEST_JSON = "openrtb2/360playvid/test-auction-360playvid-request.json" ;
21+ private static final String AUCTION_RESPONSE_JSON = "openrtb2/360playvid/test-auction-360playvid-response.json" ;
22+
1823 @ Test
1924 public void openrtb2AuctionShouldRespondWithBidsFromThreeSixtyPlayVid () throws IOException , JSONException {
2025 // given
2126 WIRE_MOCK_RULE .stubFor (post (urlPathEqualTo ("/360playvid-exchange" ))
22- .withRequestBody (equalToJson (jsonFrom ("openrtb2/360playvid/test-360playvid-bid-request.json" )))
23- .willReturn (aResponse ().withBody (jsonFrom ("openrtb2/360playvid/test-360playvid-bid-response.json" ))));
27+ .withRequestBody (equalToJson (jsonFrom (BID_REQUEST_JSON )))
28+ .willReturn (aResponse ().withBody (jsonFrom (BID_RESPONSE_JSON ))));
2429
2530 // when
26- final Response response = responseFor ("openrtb2/360playvid/test-auction-360playvid-request.json" ,
31+ final Response response = responseFor (AUCTION_REQUEST_JSON ,
2732 Endpoint .openrtb2_auction );
2833
2934 // then
30- assertJsonEquals ("openrtb2/360playvid/test-auction-360playvid-response.json" , response , singletonList ("360playvid" ));
35+ assertJsonEquals (AUCTION_RESPONSE_JSON , response , singletonList ("360playvid" ));
3136 }
3237}
You can’t perform that action at this time.
0 commit comments