Package io.micronaut.http.server.tck
Class BodyAssertion.Builder
- java.lang.Object
-
- io.micronaut.http.server.tck.BodyAssertion.Builder
-
- Enclosing class:
- BodyAssertion
public static class BodyAssertion.Builder extends java.lang.ObjectBodyAssertion Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BodyAssertion.Builderbody(java.lang.String expected)BodyAssertioncontains()BodyAssertionequals()
-
-
-
Method Detail
-
body
public BodyAssertion.Builder body(java.lang.String expected)
- Parameters:
expected- Expected Body- Returns:
- The Builder
-
contains
public BodyAssertion contains()
- Returns:
- a body assertion which verifiers the HTTP Response's body contains the expected body
-
equals
public BodyAssertion equals()
- Returns:
- a body assertion which verifiers the HTTP Response's body is equals to the expected body
-
-