コード例 #1
0
ファイル: IntegrationTestCase.java プロジェクト: rlugojr/aura
 /**
  * Gets content type of response
  *
  * @param response request response
  * @return content type
  */
 protected static ContentType getContentType(HttpResponse response) {
   return ContentType.getOrDefault(response.getEntity());
 }
コード例 #2
0
ファイル: IntegrationTestCase.java プロジェクト: rlugojr/aura
 /**
  * Gets string body of response
  *
  * @param response request response
  * @return response body
  * @throws IOException
  */
 protected static String getResponseBody(HttpResponse response) throws IOException {
   HttpEntity entity = response.getEntity();
   return entity == null ? null : EntityUtils.toString(entity);
 }