Package kong.unirest.core
Class Matchers
- java.lang.Object
-
- kong.unirest.core.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")
-
-
-
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
-
-