Package io.micronaut.http.server.tck
Class BodyAssertion<T>
- java.lang.Object
-
- io.micronaut.http.server.tck.BodyAssertion<T>
-
- Type Parameters:
T- The body type
public final class BodyAssertion<T> extends java.lang.ObjectHTTP Response's body assertions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBodyAssertion.AssertionBuilder<T>The interface for typed BodyAssertion Builders.static classBodyAssertion.BuilderBodyAssertion Builder.static classBodyAssertion.ByteArrayBodyAssertionBuilderByte Array BodyAssertion Builder.static classBodyAssertion.StringBodyAssertionBuilderString BodyAssertion Builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BodyAssertion.Builderbuilder()voidevaluate(T body)Evaluates the HTTP Response Body.java.lang.Class<T>getBodyType()
-
-
-
Method Detail
-
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 java.lang.Class<T> getBodyType()
- Returns:
- The expected body type
-
-