Trait

org.specs2.matcher

JsonMatchers

Related Doc: package matcher

Permalink

trait JsonMatchers extends JsonBaseMatchers with JsonBaseBeHaveMatchers

Matchers for Json expressions (entered as strings)

Linear Supertypes
JsonBaseBeHaveMatchers, BeHaveMatchers, JsonBaseMatchers, JsonMatchersImplicits, JsonMatchersLowImplicits, JsonSelectors, Expectations, ExpectationsDescription, TypedEqual, ExpectationsCreation, MatchResultStackTrace, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonMatchers
  2. JsonBaseBeHaveMatchers
  3. BeHaveMatchers
  4. JsonBaseMatchers
  5. JsonMatchersImplicits
  6. JsonMatchersLowImplicits
  7. JsonSelectors
  8. Expectations
  9. ExpectationsDescription
  10. TypedEqual
  11. ExpectationsCreation
  12. MatchResultStackTrace
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class Descriptible[T] extends AnyRef

    Permalink
    Definition Classes
    ExpectationsDescription
  2. class ExpectationDescription extends AnyRef

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

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

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

    Permalink

    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

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

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

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

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

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

    Permalink
    Definition Classes
    JsonSelectors
  12. sealed trait JsonQueryType extends AnyRef

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

    Permalink
    Definition Classes
    JsonSelectors
  14. sealed trait JsonSelector extends AnyRef

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

    Permalink

    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

    Permalink
    Definition Classes
    JsonSelectors
  17. trait JsonValueSelector extends JsonSelector

    Permalink
    Definition Classes
    JsonSelectors
  18. class NotMatcherJson extends AnyRef

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

    Permalink
    Definition Classes
    JsonMatchersLowImplicits
  20. class TypedEqualExpectation[T] extends AnyRef

    Permalink
    Definition Classes
    TypedEqual

Value Members

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    JsonSelectors
  9. object JsonMatcher

    Permalink
    Definition Classes
    JsonBaseMatchers
  10. object ToJsonSelector

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

    Permalink
    Definition Classes
    Any
  12. def be: NeutralMatcher[Any]

    Permalink
    Definition Classes
    BeHaveMatchers
  13. def beJsonNull: Matcher[JsonType]

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

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

    Permalink

    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
    ExpectationsCreation
  16. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    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
    ExpectationsCreation
  17. def checkResultFailure(r: ⇒ Result): Result

    Permalink

    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
    ExpectationsCreation
  18. def clone(): AnyRef

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

    Permalink

    returns

    an Expectable with a description function

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

    Permalink

    returns

    an Expectable with a description function

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

    Permalink

    returns

    an Expectable with a description

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

    Permalink

    returns

    an Expectable

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

    Permalink

    returns

    an Expectable with a function to show the element T

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

    Permalink

    describe a value with the aka method

    describe a value with the aka method

    Definition Classes
    ExpectationsDescription
  25. implicit def describeExpectation(description: String): ExpectationDescription

    Permalink
    Definition Classes
    ExpectationsDescription
  26. implicit def doubleToJsonSelector: ToJsonSelector[Double]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  32. def have: NeutralMatcher[Any]

    Permalink
    Definition Classes
    BeHaveMatchers
  33. def have(m: Matcher[JsonType]): JsonMatcher

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

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

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

    Permalink

    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
    ExpectationsCreation
  37. implicit def matcherToJsonSelector[M <: Matcher[String]]: ToJsonSelector[M]

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

    Permalink
    Definition Classes
    AnyRef
  39. def not: NotMatcher[Any]

    Permalink
    Definition Classes
    BeHaveMatchers
  40. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit

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

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

    Permalink

    returns

    the match result without any side-effects

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  44. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    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
  45. implicit def stringMatcherToJsonSelector: ToJsonSelector[Matcher[String]]

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

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

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

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

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

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

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

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

    Permalink

    datatype to specify how json values must be checked

    datatype to specify how json values must be checked

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

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

    Permalink
    Definition Classes
    JsonBaseBeHaveMatchers
  56. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  57. implicit def typedEqualExpectation[T](t: ⇒ T): TypedEqualExpectation[T]

    Permalink

    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
    TypedEqual
  58. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsonBaseBeHaveMatchers

Inherited from BeHaveMatchers

Inherited from JsonBaseMatchers

Inherited from JsonMatchersImplicits

Inherited from JsonMatchersLowImplicits

Inherited from JsonSelectors

Inherited from Expectations

Inherited from ExpectationsDescription

Inherited from TypedEqual

Inherited from ExpectationsCreation

Inherited from MatchResultStackTrace

Inherited from AnyRef

Inherited from Any

Ungrouped