vertx/src/test/java/eu/internetofus/common/vertx/HttpResponses.java
/**
   * Verify that the body of the response is an array of the specified class type.
   *
   * @param <T>   type of the elements on the array,
   *
   * @param clazz of the content.
   * @param res   response to get the body content.
   *
   * @return the content of the body.
   */
Verify that the body of the response is an array of the specified class type.
@param    type of the elements on the array.

@param clazz of the content.
@param res   response to get the body content.

@return the content of the body.
Verify that the body of the response is an array of the specified class type . @param type of the elements on the array . @param clazz of the content . @param res response to get the body content . @return the content of the body .
static <T extends Model> List<T> assertThatBodyIsArrayOf(final Class<T> clazz, final HttpResponse<Buffer> res) {
    assertThat(res.getHeader(HttpHeaders.CONTENT_TYPE)).isEqualTo(MediaType.APPLICATION_JSON);
    return Model.fromJsonArray(res.body(), clazz);
  }
static < T extends Model > List < T > assertThatBodyIsArrayOf ( final Class < T > clazz , final HttpResponse < Buffer > res ) { assertThat ( res . getHeader ( HttpHeaders . CONTENT_TYPE ) ) . isEqualTo ( MediaType . APPLICATION_JSON ) ; return Model . fromJsonArray ( res . body ( ) , clazz ) ; }
Verify that the body of the response is an array of the specified class type.
Verify that the body of the response is an array of the specified class type .