Class HmRqTextBody

  • All Implemented Interfaces:
    org.hamcrest.Matcher<Request>, org.hamcrest.SelfDescribing

    public final class HmRqTextBody
    extends AbstractHmTextBody<Request>
    Request text body matcher.

    This "matcher" tests given request body, assuming that it has text content.

    The class is immutable and thread-safe.

    Since:
    2.0
    • Constructor Detail

      • HmRqTextBody

        public HmRqTextBody​(String expected)
        Ctor with equalTo matcher and default charset.
        Parameters:
        expected - String to test against
      • HmRqTextBody

        public HmRqTextBody​(org.hamcrest.Matcher<String> bdm)
        Ctor with charset set to default one.
        Parameters:
        bdm - Text body matcher
      • HmRqTextBody

        public HmRqTextBody​(org.hamcrest.Matcher<String> bdm,
                            Charset charset)
        Ctor.
        Parameters:
        bdm - Text body matcher
        charset - Text body charset