One should not have to create an instance of Gauge manually.
Trait which provides functions to fluently build a org.scalawebtest.json.Gauge.
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.
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 gauge
wrapped in JsonGaugeFits#of. The definition has to be a String, which contains a valid JSON document.
val dijkstra: JsValue = Json.parse("""{"name": "Dijkstra", "firstName": "Edsger"}""") dijkstra fits values of """{"firstName": "Edsger"}"""
Allows to test if the complete response fits the provided org.scalawebtest.json.Gauge definition.
Helper object to provide functions to fluently build a org.scalawebtest.json.Gauge.
Helper object to provide 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 gauge definition.
Import JsonGauge$.JsonGaugeFromJsLookup or JsonGauge$.JsonGaugeFromJsValue, then follow the documentation of the JsonGauge trait.
One should not have to create an instance of Gauge manually. Use one of the provided Builder. Either JsonGauge or JsonGaugeFromResponse
JsValue to be tested with the gauge
whether the testee is expected to fit the gauge values
whether the testee is expected to fit the sizes of contained arrays