Package io.micronaut.http.tck
Class BodyAssertion<T,E>
java.lang.Object
io.micronaut.http.tck.BodyAssertion<T,E>
- Type Parameters:
T- The body typeE- The error type
HTTP Response's body assertions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe interface for typed BodyAssertion Builders.static classBodyAssertion Builder.static classByte Array BodyAssertion Builder.static classString BodyAssertion Builder. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BodyAssertion.Builderbuilder()voidEvaluates the HTTP Response Body.
-
Field Details
-
IS_MISSING
-
-
Method Details
-
builder
- Returns:
- a Builder;
-
evaluate
Evaluates the HTTP Response Body.- Parameters:
body- The HTTP Response Body
-
getBodyType
- Returns:
- The expected body type
-
getErrorType
-