Class HmRsStatus

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

    public final class HmRsStatus
    extends org.hamcrest.FeatureMatcher<Response,​Integer>
    Response Status Matcher.

    This "matcher" tests given response status code.

    The class is immutable and thread-safe.

    Since:
    0.13
    • Constructor Detail

      • HmRsStatus

        public HmRsStatus​(int val)
        Create matcher using HTTP code.
        Parameters:
        val - HTTP code value
        Since:
        0.17
      • HmRsStatus

        public HmRsStatus​(org.hamcrest.Matcher<Integer> matcher)
        Create matcher using HTTP code matcher.
        Parameters:
        matcher - HTTP code matcher
    • Method Detail

      • featureValueOf

        public Integer featureValueOf​(Response response)
        Specified by:
        featureValueOf in class org.hamcrest.FeatureMatcher<Response,​Integer>