org.specs2.matcher

JsonMatchers

trait JsonMatchers extends JsonBaseMatchers with JsonBaseBeHaveMatchers

Matchers for Json expressions (entered as strings)

Linear Supertypes
JsonBaseBeHaveMatchers, JsonBaseMatchers, JsonMatchersLowImplicits, Expectations, CanBeEqual, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonMatchers
  2. JsonBaseBeHaveMatchers
  3. JsonBaseMatchers
  4. JsonMatchersLowImplicits
  5. Expectations
  6. CanBeEqual
  7. AnyRef
  8. 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. class JsonDeepPairMatcher extends Matcher[String]

    Definition Classes
    JsonBaseMatchers
  4. class JsonDeepValueMatcher extends Matcher[String]

    Definition Classes
    JsonBaseMatchers
  5. case class JsonEqualValue extends JsonValueSpec with Product with Serializable

    Definition Classes
    JsonBaseMatchers
  6. class JsonPairMatcher extends Matcher[String]

    Definition Classes
    JsonBaseMatchers
  7. case class JsonPairSpec extends Product with Serializable

    Definition Classes
    JsonBaseMatchers
  8. case class JsonRegex extends JsonValueSpec with Product with Serializable

    Definition Classes
    JsonBaseMatchers
  9. case class JsonSelector extends Product with Serializable

    Definition Classes
    JsonBaseMatchers
  10. case class JsonStringMatcher extends JsonValueSpec with Product with Serializable

    Definition Classes
    JsonBaseMatchers
  11. class JsonValueMatcher extends Matcher[String]

    Definition Classes
    JsonBaseMatchers
  12. trait JsonValueSpec extends AnyRef

    Definition Classes
    JsonBaseMatchers
  13. class NotMatcherJson extends AnyRef

    Definition Classes
    JsonBaseBeHaveMatchers
  14. trait ToJsonValueSpec[T] extends AnyRef

    Definition Classes
    JsonBaseMatchers

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def */(pair: JsonPairSpec): JsonDeepPairMatcher

    match if the document contains the pair at any level

    match if the document contains the pair at any level

    Definition Classes
    JsonBaseMatchers
  5. def */(value: JsonValueSpec): JsonDeepValueMatcher

    match if the document contains the value at any level

    match if the document contains the value at any level

    Definition Classes
    JsonBaseMatchers
  6. def /(pair: JsonPairSpec): JsonPairMatcher

    match if the document contains the pair at the top level

    match if the document contains the pair at the top level

    Definition Classes
    JsonBaseMatchers
  7. def /(value: JsonValueSpec): JsonValueMatcher

    match if the document contains the value at the top-level

    match if the document contains the value at the top-level

    Definition Classes
    JsonBaseMatchers
  8. def /#(i: Int): JsonSelector

    allow to match on the i-th element of an Array or a Map (0-based)

    allow to match on the i-th element of an Array or a Map (0-based)

    Definition Classes
    JsonBaseMatchers
  9. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  11. object ToJsonValueSpec

    Definition Classes
    JsonBaseMatchers
  12. implicit def anyToJSonValueSpec[T]: ToJsonValueSpec[T]

    Definition Classes
    JsonMatchersLowImplicits
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  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 overriden to throw exceptions when checking the match result

    this method can be overriden 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 overriden to throw exceptions when checking the match result

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

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

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

    this method can be overriden 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. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def findDeep(key: JsonValueSpec, json: JSONType): Option[JSONType]

    returns

    findDeep with a Regex or a String or a String matcher

    Definition Classes
    JsonBaseMatchers
  29. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean

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

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

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

    Attributes
    protected
    Definition Classes
    Expectations
  33. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  36. implicit def regexToJSonValueSpec: ToJsonValueSpec[Regex]

    Definition Classes
    JsonBaseMatchers
  37. implicit def stringMatcherToJSonValueSpec: ToJsonValueSpec[Matcher[String]]

    Definition Classes
    JsonBaseMatchers
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. implicit def toJsonPairSpec[K, V](kv: (K, V))(implicit arg0: ToJsonValueSpec[K], arg1: ToJsonValueSpec[V]): JsonPairSpec

    Definition Classes
    JsonBaseMatchers
  40. implicit def toJsonRegex(r: Regex): JsonRegex

    Definition Classes
    JsonBaseMatchers
  41. implicit def toJsonStringMatcher(m: Matcher[String]): JsonStringMatcher

    datatype to specify how json values must be checked

    datatype to specify how json values must be checked

    Definition Classes
    JsonBaseMatchers
  42. implicit def toJsonValue(s: Any): JsonEqualValue

    Definition Classes
    JsonBaseMatchers
  43. implicit def toNotMatcherJson(result: NotMatcher[Any]): NotMatcherJson

    Definition Classes
    JsonBaseBeHaveMatchers
  44. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsonBaseBeHaveMatchers

Inherited from JsonBaseMatchers

Inherited from JsonMatchersLowImplicits

Inherited from Expectations

Inherited from CanBeEqual

Inherited from AnyRef

Inherited from Any

Ungrouped