8485868788899091929394
@Test public void testReportListHtml() throws Exception { Response response = given() .header(new Header("Accept","text/html")) .expect() .statusCode(200) .log().ifError() .when() .get("/reports");
68697071727374
public Header getAuthorization() { String accessToken = ""; if(accessTokenResponse.getToken() != null) { accessToken = accessTokenResponse.getToken(); } return new Header("Authorization", "Bearer " + accessToken); }
6789101112
* @author <a href="mailto:tkriz@redhat.com">Tadeas Kriz</a> */ public class Headers { public static Header acceptJson() { return new Header("Accept", "application/json"); }