daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 58 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top