Class BodyAssertion.Builder

  • Enclosing class:
    BodyAssertion

    public static class BodyAssertion.Builder
    extends java.lang.Object
    BodyAssertion Builder.
    • Constructor Detail

      • Builder

        public Builder()
    • 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