Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void shouldGetRoutesList() {
- Response response =
- given()
- .headers("RequestId", 10)
- .headers("Authorization", accessToken)
- .contentType(ContentType.JSON).
- expect()
- .statusCode(HttpURLConnection.HTTP_OK).
- when()
- .get("address");
- String responseBody = response.getBody().asString();
- System.out.println(responseBody);
- logger.info("Log message");
- }
Add Comment
Please, Sign In to add comment