Searched refs:httpResponse (Results 1 – 6 of 6) sorted by relevance
125 HttpResponse httpResponse = HttpClient.request(request); in request_contentTypeXml_returnsXmlBody() local133 assertThat(httpResponse.contentType()).isEqualTo(ContentType.JSON); in request_contentTypeXml_returnsXmlBody()134 assertThat(httpResponse.body()).isEqualTo(TEST_RESPONSE_BODY); in request_contentTypeXml_returnsXmlBody()135 assertThat(httpResponse.responseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in request_contentTypeXml_returnsXmlBody()190 HttpResponse httpResponse = HttpClient.request(request); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork() local198 assertThat(httpResponse.contentType()).isEqualTo(ContentType.JSON); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork()199 assertThat(httpResponse.body()).isEqualTo(TEST_RESPONSE_BODY); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork()200 assertThat(httpResponse.responseCode()).isEqualTo(HttpURLConnection.HTTP_OK); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork()299 HttpResponse httpResponse = HttpClient.request(request); in request_postGzipJsonArray_response_gunzipJsonArray() local302 assertThat(httpResponse.contentType()).isEqualTo(ContentType.JSON); in request_postGzipJsonArray_response_gunzipJsonArray()[all …]
99 HttpResponse httpResponse = HttpClient.request(httpRequest); in queryAfcServer() local100 JSONObject httpResponseBodyJSON = new JSONObject(httpResponse.body()); in queryAfcServer()103 .fromSpectrumInquiryResponse(getHttpResponseCode(httpResponse), in queryAfcServer()241 private int getHttpResponseCode(HttpResponse httpResponse) { in getHttpResponseCode() argument242 return httpResponse == null ? 500 : httpResponse.responseCode(); in getHttpResponseCode()
174 HttpResponse httpResponse = HttpClient.request( in getImsiPseudonym() local180 new GetImsiPseudonymResponse(httpResponse.body()); in getImsiPseudonym()235 HttpResponse httpResponse = in getAuthenticationChallenge() local239 ChallengeResponse challengeResponse = new ChallengeResponse(httpResponse.body()); in getAuthenticationChallenge()
510 String stage, FederatedComputeHttpResponse httpResponse) {511 if (!HTTP_OK_STATUS.contains(httpResponse.getStatusCode())) {512 throw new IllegalStateException(stage + " failed: " + httpResponse.getStatusCode());519 String stage, FederatedComputeHttpResponse httpResponse) {520 if (!HTTP_OK_OR_UNAUTHENTICATED_STATUS.contains(httpResponse.getStatusCode())) {521 throw new IllegalStateException(stage + " failed: " + httpResponse.getStatusCode());
98 HttpResponse httpResponse = HttpResponse.builder().setResponseCode( in setUp() local106 when(HttpClient.request(any(HttpRequest.class))).thenReturn(httpResponse); in setUp()
388 FederatedComputeHttpResponse httpResponse = in testCreateTaskAssignmentFailed() local391 .thenReturn(immediateFuture(httpResponse)); in testCreateTaskAssignmentFailed()484 FederatedComputeHttpResponse httpResponse = in testCreateTaskAssignmentRejection() local490 .thenReturn(immediateFuture(httpResponse)); in testCreateTaskAssignmentRejection()