Skip to content

Commit 8cea3f7

Browse files
committed
refactor to fix lint error of line length
1 parent 8302f98 commit 8cea3f7

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/test/java/org/prebid/server/it/ThreeSixtyPlayVidTest.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,23 @@
1515

1616
public 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
}

0 commit comments

Comments
 (0)