Class BodyAssertion<T,E>

java.lang.Object
io.micronaut.http.tck.BodyAssertion<T,E>
Type Parameters:
T - The body type
E - The error type

public final class BodyAssertion<T,E> extends Object
HTTP Response's body assertions.
  • Method Details

    • builder

      public static BodyAssertion.Builder builder()
      Returns:
      a Builder;
    • evaluate

      public void evaluate(T body)
      Evaluates the HTTP Response Body.
      Parameters:
      body - The HTTP Response Body
    • getBodyType

      public Class<T> getBodyType()
      Returns:
      The expected body type
    • getErrorType

      @Nullable public @Nullable Class<E> getErrorType()