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.Object
HTTP Response's body assertions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BodyAssertion.AssertionBuilder<T>
The interface for typed BodyAssertion Builders.static class
BodyAssertion.Builder
BodyAssertion Builder.static class
BodyAssertion.ByteArrayBodyAssertionBuilder
Byte Array BodyAssertion Builder.static class
BodyAssertion.StringBodyAssertionBuilder
String BodyAssertion Builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BodyAssertion.Builder
builder()
void
evaluate(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
-
-