Interface BodyMatcher

All Known Implementing Classes:
EqualsBodyMatcher, FieldMatcher

public interface BodyMatcher
Body Matchers can be used to evaluate a entity body. This is represented by one or more (in the case of multi-part) sections these sections are represented as strings in the same way as toString represents the part For a single entity like a JSON payload this is simply going to be the JSON String For field params it will be a key value pair like 'fruit=orange` For binary types it will be some kind of indication like a file path.
  • Method Summary

    Modifier and Type
    Method
    Description
    indicates if the Matcher succeeded in matching the body
  • Method Details

    • matches

      MatchStatus matches(List<String> body)
      indicates if the Matcher succeeded in matching the body
      Parameters:
      body - the list of body parts
      Returns:
      MatchStatus indicating if the Matcher succeeded in matching the body