org.backuity.matchete.json

JsonMatchers

Related Doc: package json

trait JsonMatchers extends MatcherSupport with JsonStableRenderer

Linear Supertypes
JsonStableRenderer, MatcherSupport, Matchers, AnyMatchers, BooleanMatchers, NumericMatchers, OrderedMatchers, TraversableMatchers, StringMatchers, ExceptionMatchers, CoreMatcherSupport, ToMatcherOps, FailureReporter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonMatchers
  2. JsonStableRenderer
  3. MatcherSupport
  4. Matchers
  5. AnyMatchers
  6. BooleanMatchers
  7. NumericMatchers
  8. OrderedMatchers
  9. TraversableMatchers
  10. StringMatchers
  11. ExceptionMatchers
  12. CoreMatcherSupport
  13. ToMatcherOps
  14. FailureReporter
  15. AnyRef
  16. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def fail(msg: String): Nothing

    Definition Classes
    FailureReporter

Concrete Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. implicit def SizedArray[T]: Sized[Array[T]]

    Definition Classes
    AnyMatchers
  5. implicit val SizedString: Sized[String]

    Definition Classes
    AnyMatchers
  6. implicit def SizedStructural[T <: AnyRef { def size: Int }]: Sized[T]

    Definition Classes
    AnyMatchers
  7. implicit def ToMatcherOpsFromAny[T](t: ⇒ T): MatcherOps[T]

    Definition Classes
    ToMatcherOps
  8. def a[T](implicit arg0: Manifest[T]): Matcher[Any]

    Definition Classes
    AnyMatchers
  9. def a[T](description: String)(pf: PartialFunction[T, Unit])(implicit arg0: Formatter[T]): Matcher[T]

    Definition Classes
    CoreMatcherSupport
  10. def an[T](description: String)(pf: PartialFunction[T, Unit])(implicit arg0: Formatter[T]): Matcher[T]

    Definition Classes
    CoreMatcherSupport
  11. implicit def anyComparator[T](implicit formatter: Formatter[T], diffable: Diffable[T]): MatcherComparator[T]

    Definition Classes
    AnyMatchers
  12. implicit def arrayComparator[T](implicit arrayFormatter: Formatter[Array[T]]): MatcherComparator[Array[T]]

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

    Definition Classes
    Any
  14. def be[T](m: Matcher[T]): EagerMatcher[T]

    Definition Classes
    CoreMatcherSupport
  15. def be[T](description: String)(pf: PartialFunction[T, Unit])(implicit arg0: Formatter[T]): Matcher[T]

    Definition Classes
    CoreMatcherSupport
  16. def beA[T](implicit arg0: Manifest[T]): Matcher[Any]

    Definition Classes
    AnyMatchers
  17. def beCloseTo[T](delta: Delta[T]): Matcher[T]

    Definition Classes
    NumericMatchers
  18. def beEmpty[T](implicit ev1: (T) ⇒ AnyRef { def isEmpty: Boolean }, formatter: Formatter[T]): Matcher[T]

    Definition Classes
    AnyMatchers
  19. def beEq[T <: AnyRef](expected: T)(implicit formatter: Formatter[T]): EagerMatcher[T]

    Definition Classes
    AnyMatchers
  20. def beEqualTo[T](expected: T)(implicit arg0: Formatter[T], arg1: MatcherComparator[T]): EagerMatcher[T]

    Definition Classes
    AnyMatchers
  21. def beFalse: Matcher[Boolean]

    Definition Classes
    BooleanMatchers
  22. def beLike[T](description: String)(pf: PartialFunction[T, Unit])(implicit arg0: Formatter[T]): Matcher[T]

    Definition Classes
    CoreMatcherSupport
  23. def beNull[T <: AnyRef](implicit formatter: Formatter[T]): EagerMatcher[T]

    Definition Classes
    AnyMatchers
  24. def beTrue: Matcher[Boolean]

    Definition Classes
    BooleanMatchers
  25. def be_<[O](max: O)(implicit arg0: Ordering[O], arg1: Formatter[O]): Matcher[O]

    Definition Classes
    OrderedMatchers
  26. def be_<=[O](max: O)(implicit arg0: Ordering[O], arg1: Formatter[O]): Matcher[O]

    Definition Classes
    OrderedMatchers
  27. def be_==[T](expected: T)(implicit arg0: Formatter[T], arg1: MatcherComparator[T]): EagerMatcher[T]

    Definition Classes
    AnyMatchers
  28. def be_>[O](min: O)(implicit arg0: Ordering[O], arg1: Formatter[O]): Matcher[O]

    Definition Classes
    OrderedMatchers
  29. def be_>=[O](min: O)(implicit arg0: Ordering[O], arg1: Formatter[O]): Matcher[O]

    Definition Classes
    OrderedMatchers
  30. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def compact(value: JValue): String

    Definition Classes
    JsonStableRenderer
  32. def compact(d: Document): String

    Definition Classes
    JsonStableRenderer
  33. def contain[T](matchers: Matcher[T]*): EagerMatcher[TraversableOnce[T]]

    Definition Classes
    TraversableMatchers
  34. def contain(substring: String)(implicit formatter: Formatter[String]): Matcher[String]

    Definition Classes
    StringMatchers
  35. def containAny[T](matchers: Matcher[T]*): EagerMatcher[TraversableOnce[T]]

    Definition Classes
    TraversableMatchers
  36. def containElements[T](others: T*)(implicit formatter: Formatter[T]): EagerMatcher[TraversableOnce[T]]

    Definition Classes
    TraversableMatchers
  37. def containExactly[T](matchers: Matcher[T]*): EagerMatcher[TraversableOnce[T]] { def checkAMatcherForEveryElement(elems: Traversable[T],failPrefix: String): Unit }

    Definition Classes
    TraversableMatchers
  38. def containJson(id: String, elemMatcher: Matcher[JValue]): Matcher[JValue]

  39. def containJsonElement(id: String, elemMatcher: Matcher[String]): Matcher[JValue]

  40. def containJsonElement(id: String): Matcher[JValue]

  41. def containUnorderedJsonValues(id: String, values: String*): Matcher[JValue]

  42. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  43. def equalJValue(json: JValue): Matcher[JValue]

  44. def equalJValue(json: String): Matcher[JValue]

  45. def equalJson(json: JValue, transformer: (String) ⇒ String): Matcher[String]

  46. def equalJson(json: String, transformer: (String) ⇒ String = (v) => v): Matcher[String]

  47. def equalTo[T](expected: T)(implicit arg0: Formatter[T], arg1: MatcherComparator[T]): EagerMatcher[T]

    Definition Classes
    AnyMatchers
  48. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  49. final def failIf(expr: Boolean, msg: ⇒ String): Unit

    Definition Classes
    FailureReporter
  50. def failIfDifferentStrings(actual: String, expected: String, msg: String): Unit

    Definition Classes
    FailureReporter
  51. implicit val failureReporter: FailureReporter

    Definition Classes
    FailureReporter
  52. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  53. def forAll[T](m: Matcher[T]): EagerMatcher[TraversableOnce[T]]

    Definition Classes
    TraversableMatchers
  54. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  56. def have[T](description: String)(pf: PartialFunction[T, Unit])(implicit arg0: Formatter[T]): Matcher[T]

    Definition Classes
    CoreMatcherSupport
  57. def haveSize[T](size: Int)(implicit sized: Sized[T], formatter: Formatter[T]): EagerMatcher[T]

    Definition Classes
    AnyMatchers
  58. def indent(str: String, numberOfSpace: Int): String

  59. def indentLine(prefix: String, str: String): String

  60. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  61. def matcher[T](description: String, validate: (T) ⇒ Boolean, failureDescription: (T) ⇒ String, nullMessage: String): Matcher[T]

    Definition Classes
    CoreMatcherSupport
  62. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  63. def not[T](matcher: Matcher[T])(implicit formatter: Formatter[T], manifest: Manifest[T]): Matcher[T]

    Definition Classes
    AnyMatchers
  64. final def notify(): Unit

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

    Definition Classes
    AnyRef
  66. def nullAcceptingMatcher[T](description: String, validate: (T) ⇒ Boolean, failureDescription: (T) ⇒ String): Matcher[T]

    Definition Classes
    CoreMatcherSupport
  67. def nullOutJsonField(names: String*): (String) ⇒ String

    Create a string transformer that replace the values of string and int fields respectively by "???" and 0.

    Create a string transformer that replace the values of string and int fields respectively by "???" and 0.

    See also

    JsonMatchers#replaceJsonField

  68. def parseJson(json: String): JValue

  69. def partialFunctionMatcher[T](description: String)(pf: PartialFunction[T, Unit])(implicit formatter: Formatter[T]): Matcher[T]

    Definition Classes
    CoreMatcherSupport
  70. def partialFunctionMatcher[T](description: String, descriptionNegation: String)(pf: PartialFunction[T, Unit])(implicit formatter: Formatter[T]): Matcher[T]

    Definition Classes
    CoreMatcherSupport
  71. def pretty(value: JValue): String

    Definition Classes
    JsonStableRenderer
  72. def pretty(d: Document): String

    Definition Classes
    JsonStableRenderer
  73. def render(value: JValue): Document

    Renders JSON.

    Renders JSON.

    Definition Classes
    JsonStableRenderer
    See also

    Printer#pretty

    Printer#compact

  74. def replaceJsonField(value: String, names: String*): (String) ⇒ String

    Create a string transformer that replace fields by known values.

    Create a string transformer that replace fields by known values. Ex: given the following JSON

    {
      "id" : "1234-123123",
      "name" : "John",
      "age" : "123"
    }

    The transformer obtained by this call:

    replaceJsonField(value = "???", names = "id", "age")

    Will turn the JSON into

    {
      "id" : "???",
      "name" : "John",
      "age" : "???"
    }
  75. def startWith(prefix: String)(implicit formatter: Formatter[String]): Matcher[String]

    Definition Classes
    StringMatchers
  76. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  77. def throwA[T <: Throwable](implicit arg0: Manifest[T]): ThrowMatcher[T] { ... /* 6 definitions in type refinement */ }

    Definition Classes
    ExceptionMatchers
  78. def throwAn[T <: Throwable](implicit arg0: Manifest[T]): ThrowMatcher[T] { ... /* 6 definitions in type refinement */ }

    Definition Classes
    ExceptionMatchers
  79. implicit def toDeltaBuilder[T](t: T)(implicit arg0: Numeric[T]): DeltaBuilder[T]

    Definition Classes
    NumericMatchers
  80. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsonStableRenderer

Inherited from MatcherSupport

Inherited from Matchers

Inherited from AnyMatchers

Inherited from BooleanMatchers

Inherited from NumericMatchers

Inherited from OrderedMatchers

Inherited from TraversableMatchers

Inherited from StringMatchers

Inherited from ExceptionMatchers

Inherited from CoreMatcherSupport

Inherited from ToMatcherOps

Inherited from FailureReporter

Inherited from AnyRef

Inherited from Any

Ungrouped