base trait for the marker objects, which are used to select the behavior of the org.scalawebtest.json.Gauge
Implicit class, to build a Gauge from a JsLookupResult
Implicit class, to build a Gauge from a JsValue
marker object to build a gauge, which only verifies by type
marker object to build a gauge, which only verifies by type, but checks array sizes as well
marker object to build a gauge, which verifies values
Trait which provides functions to fluently build a org.scalawebtest.json.Gauge. Which in turn is used to test if a play.api.libs.json.JsLookupResult or play.api.libs.json.JsValue fits the provided gauge definition.
Overview
Start with a play.api.libs.json.JsLookupResult followed by JsonGauge.JsonGaugeFromJsLookup#fits, JsonGauge.JsonGaugeFromJsLookup#fit or JsonGauge.JsonGaugeFromJsLookup#containsElementFitting or play.api.libs.json.JsValue followed by JsonGauge.JsonGaugeFromJsValue#fits, JsonGauge.JsonGaugeFromJsValue#fit or JsonGauge.JsonGaugeFromJsValue#containsElementFitting
Next you choose the JsonGauge.GaugeType, which has to be one of the following JsonGauge.types$, JsonGauge.typesAndArraySizes$, JsonGauge.values$ or JsonGauge.JsonGaugeFromJsLookup#containsElementFitting
Last is the definition of the JSON
gaugewrapped in JsonGaugeFits#of. The definition has to be a String, which contains a valid JSON document.Example