Class Matchers


  • public class Matchers
    extends java.lang.Object
    Static set of Matchers
    • Constructor Summary

      Constructors 
      Constructor Description
      Matchers()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BodyMatcher bodyFields​(java.lang.String keyValuePairs)
      Creates a FieldMatcher expecting a map of keys and values use like: FieldMatcher.of("fruit", "orange", "quantity" "42")
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Matchers

        public Matchers()
    • Method Detail

      • bodyFields

        public BodyMatcher bodyFields​(java.lang.String keyValuePairs)
        Creates a FieldMatcher expecting a map of keys and values use like: FieldMatcher.of("fruit", "orange", "quantity" "42")
        Parameters:
        keyValuePairs - an array of key-value pairs to expect
        Returns:
        a new FieldMatcher