Package kong.unirest.core
Class Matchers
java.lang.Object
kong.unirest.core.Matchers
Static set of Matchers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbodyFields
(String keyValuePairs) Creates a FieldMatcher expecting a map of keys and values use like: FieldMatcher.of("fruit", "orange", "quantity" "42")
-
Constructor Details
-
Matchers
public Matchers()
-
-
Method Details
-
bodyFields
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
-