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
Modifier and TypeClassDescriptionstatic interface
The interface for typed BodyAssertion Builders.static class
BodyAssertion Builder.static class
Byte Array BodyAssertion Builder.static class
String BodyAssertion Builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic BodyAssertion.Builder
builder()
void
Evaluates the HTTP Response Body.
-
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
-