daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Test
  2. public void shouldGetRoutesList() {
  3.     Response response =
  4.             given()
  5.                     .headers("RequestId", 10)
  6.                     .headers("Authorization", accessToken)
  7.                     .contentType(ContentType.JSON).
  8.             expect()
  9.                     .statusCode(HttpURLConnection.HTTP_OK).
  10.             when()
  11.                     .get("address");
  12.     String responseBody = response.getBody().asString();
  13.     System.out.println(responseBody);
  14.     logger.info("Log message");
  15. }
RAW Paste Data
Top