org.specs2.matcher

JsonMatchers

Related Doc: package matcher

trait JsonMatchers extends JsonBaseMatchers with JsonBaseBeHaveMatchers

Matchers for Json expressions (entered as strings)

Linear Supertypes
JsonBaseBeHaveMatchers, JsonBaseMatchers, JsonMatchersImplicits, JsonMatchersLowImplicits, JsonSelectors, Expectations, MatchResultStackTrace, CanBeEqual, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonMatchers
  2. JsonBaseBeHaveMatchers
  3. JsonBaseMatchers
  4. JsonMatchersImplicits
  5. JsonMatchersLowImplicits
  6. JsonSelectors
  7. Expectations
  8. MatchResultStackTrace
  9. CanBeEqual
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class CanBeEqualExpectation[T] extends AnyRef

    Definition Classes
    CanBeEqual
  2. class Descriptible[T] extends AnyRef

    Definition Classes
    Expectations
  3. case class JsonDoubleSelector(d: Double) extends JsonValueSelector with Product with Serializable

    Definition Classes
    JsonSelectors
  4. case class JsonEqualValueSelector(v: Any) extends JsonValueSelector with Product with Serializable

    Definition Classes
    JsonSelectors
  5. case class JsonFinalMatcher extends JsonMatcher with Product with Serializable

    This matcher can not be chained anymore with selections

    This matcher can not be chained anymore with selections

    Definition Classes
    JsonBaseMatchers
  6. case class JsonIndexSelector(n: Int) extends JsonSelector with Product with Serializable

    Definition Classes
    JsonSelectors
  7. case class JsonIntSelector(n: Int) extends JsonValueSelector with Product with Serializable

    Definition Classes
    JsonSelectors
  8. abstract class JsonMatcher extends Matcher[String]

    Definition Classes
    JsonBaseMatchers
  9. case class JsonMatcherSelector(m: Matcher[String]) extends JsonValueSelector with Product with Serializable

    Definition Classes
    JsonSelectors
  10. case class JsonPairSelector(_1: JsonSelector, _2: JsonSelector) extends JsonSelector with Product with Serializable

    Definition Classes
    JsonSelectors
  11. case class JsonQuery(query: JsonQueryType, selector: JsonSelector) extends Product with Serializable

    Definition Classes
    JsonSelectors
  12. sealed trait JsonQueryType extends AnyRef

    Definition Classes
    JsonSelectors
  13. case class JsonRegexSelector(r: Regex) extends JsonValueSelector with Product with Serializable

    Definition Classes
    JsonSelectors
  14. sealed trait JsonSelector extends AnyRef

    Definition Classes
    JsonSelectors
  15. case class JsonSelectorMatcher extends JsonMatcher with Product with Serializable

    This matcher can be chained to select further elements in the Json object

    This matcher can be chained to select further elements in the Json object

    Definition Classes
    JsonBaseMatchers
  16. case class JsonValueOrKeySelector(selector: JsonSelector) extends JsonSelector with Product with Serializable

    Definition Classes
    JsonSelectors
  17. trait JsonValueSelector extends JsonSelector

    Definition Classes
    JsonSelectors
  18. class NotMatcherJson extends AnyRef

    Definition Classes
    JsonBaseBeHaveMatchers
  19. trait ToJsonSelector[T] extends AnyRef

    Definition Classes
    JsonMatchersLowImplicits

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def */(selector: JsonSelector): JsonSelectorMatcher

    Definition Classes
    JsonBaseMatchers
  4. def /(selector: JsonSelector): JsonSelectorMatcher

    Definition Classes
    JsonBaseMatchers
  5. def /#(n: Int): JsonSelectorMatcher

    Definition Classes
    JsonBaseMatchers
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  7. object Deep extends JsonQueryType with Product with Serializable

    Definition Classes
    JsonSelectors
  8. object First extends JsonQueryType with Product with Serializable

    Definition Classes
    JsonSelectors
  9. object JsonMatcher

    Definition Classes
    JsonBaseMatchers
  10. object ToJsonSelector

    Definition Classes
    JsonMatchersImplicits
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def beJsonNull: Matcher[JsonType]

    Definition Classes
    JsonBaseMatchers
  13. implicit def booleanToJsonSelector: ToJsonSelector[Boolean]

    Definition Classes
    JsonMatchersLowImplicits
  14. implicit def canBeEqual[T](t: ⇒ T): CanBeEqualExpectation[T]

    A value can be tested against another with the === operator.

    A value can be tested against another with the === operator. It is equivalent to writing a must_== b

    Definition Classes
    CanBeEqual
  15. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    this method can be overridden to throw exceptions when checking the match result

    this method can be overridden to throw exceptions when checking the match result

    Attributes
    protected
    Definition Classes
    Expectations
  16. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    this method can be overridden to throw exceptions when checking the match result

    this method can be overridden to throw exceptions when checking the match result

    Attributes
    protected
    Definition Classes
    Expectations
  17. def checkResultFailure(r: ⇒ Result): Result

    this method can be overridden to throw exceptions when checking the result

    this method can be overridden to throw exceptions when checking the result

    Attributes
    protected
    Definition Classes
    Expectations
  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]

    returns

    an Expectable with a description function

    Definition Classes
    Expectations
  20. def createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]

    returns

    an Expectable with a description function

    Definition Classes
    Expectations
  21. def createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]

    returns

    an Expectable with a description

    Definition Classes
    Expectations
  22. def createExpectable[T](t: ⇒ T): Expectable[T]

    returns

    an Expectable

    Definition Classes
    Expectations
  23. def createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]

    returns

    an Expectable with a function to show the element T

    Definition Classes
    Expectations
  24. implicit def describe[T](t: ⇒ T): Descriptible[T]

    describe a value with the aka method

    describe a value with the aka method

    Definition Classes
    Expectations
  25. implicit def doubleToJsonSelector: ToJsonSelector[Double]

    Definition Classes
    JsonMatchersLowImplicits
  26. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  28. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. def have(m: Matcher[JsonType]): JsonMatcher

    Definition Classes
    JsonBaseMatchers
  32. implicit def intToJsonSelector: ToJsonSelector[Int]

    Definition Classes
    JsonMatchersLowImplicits
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    this method can be overridden to intercept a MatchResult and change its message before it is thrown

    this method can be overridden to intercept a MatchResult and change its message before it is thrown

    Attributes
    protected
    Definition Classes
    Expectations
  35. implicit def matcherToJsonSelector[M <: Matcher[String]]: ToJsonSelector[M]

    Definition Classes
    JsonMatchersImplicits
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  39. implicit def regexToJsonSelector: ToJsonSelector[Regex]

    Definition Classes
    JsonMatchersImplicits
  40. def sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]

    returns

    the match result without any side-effects

    Attributes
    protected
    Definition Classes
    Expectations
  41. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    Attributes
    protected
    Definition Classes
    MatchResultStackTrace
  42. implicit def stringMatcherToJsonSelector: ToJsonSelector[Matcher[String]]

    Definition Classes
    JsonMatchersImplicits
  43. implicit def stringToJsonSelector: ToJsonSelector[String]

    Definition Classes
    JsonMatchersLowImplicits
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. implicit def toJsonSelectorPair[K, V](kv: (K, V))(implicit arg0: ToJsonSelector[K], arg1: ToJsonSelector[V]): JsonPairSelector

    Definition Classes
    JsonMatchersImplicits
  46. implicit def toJsonValueSelectorBooleanValue(b: Boolean): JsonSelector

    Definition Classes
    JsonMatchersImplicits
  47. implicit def toJsonValueSelectorDoubleValue(d: Double): JsonSelector

    Definition Classes
    JsonMatchersImplicits
  48. implicit def toJsonValueSelectorIntValue(i: Int): JsonSelector

    Definition Classes
    JsonMatchersImplicits
  49. implicit def toJsonValueSelectorRegex(r: Regex): JsonSelector

    Definition Classes
    JsonMatchersImplicits
  50. implicit def toJsonValueSelectorStringMatcher[M <: Matcher[String]](m: M): JsonSelector

    datatype to specify how json values must be checked

    datatype to specify how json values must be checked

    Definition Classes
    JsonMatchersImplicits
  51. implicit def toJsonValueSelectorStringValue(s: String): JsonSelector

    Definition Classes
    JsonMatchersImplicits
  52. implicit def toNotMatcherJson(result: NotMatcher[Any]): NotMatcherJson

    Definition Classes
    JsonBaseBeHaveMatchers
  53. def toString(): String

    Definition Classes
    AnyRef → Any
  54. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsonBaseBeHaveMatchers

Inherited from JsonBaseMatchers

Inherited from JsonMatchersImplicits

Inherited from JsonMatchersLowImplicits

Inherited from JsonSelectors

Inherited from Expectations

Inherited from MatchResultStackTrace

Inherited from CanBeEqual

Inherited from AnyRef

Inherited from Any

Ungrouped