Guest User

Untitled

a guest
Feb 13th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment