org.specs2.matcher

MustThrownMatchers

object MustThrownMatchers extends MustThrownMatchers

Linear Supertypes
MustThrownMatchers, MustThrownExpectations, MustExpectations, ThrownExpectations, Matchers, MatchersImplicits, FileMatchers, FileBeHaveMatchers, FileBaseMatchers, PathMatchers, PathBeHaveMatchers, PathBaseMatchers, FileSystem, FileWriter, FileReader, EventuallyMatchers, EitherMatchers, EitherBeHaveMatchers, EitherBaseMatchers, OptionMatchers, OptionBeHaveMatchers, OptionBaseMatchers, NumericMatchers, NumericBeHaveMatchers, NumericBaseMatchers, ExceptionMatchers, ExceptionBeHaveMatchers, ExceptionBaseMatchers, BeHaveMatchers, JsonMatchers, JsonBaseBeHaveMatchers, JsonBaseMatchers, Expectations, XmlMatchers, XmlBeHaveMatchers, XmlBaseMatchers, StringMatchers, StringBeHaveMatchers, StringBaseMatchers, MapMatchers, MapBeHaveMatchers, MapBaseMatchers, TraversableMatchers, TraversableBeHaveMatchers, TraversableBaseMatchers, LazyParameters, AnyMatchers, AnyBeHaveMatchers, AnyBaseMatchers, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MustThrownMatchers
  2. MustThrownMatchers
  3. MustThrownExpectations
  4. MustExpectations
  5. ThrownExpectations
  6. Matchers
  7. MatchersImplicits
  8. FileMatchers
  9. FileBeHaveMatchers
  10. FileBaseMatchers
  11. PathMatchers
  12. PathBeHaveMatchers
  13. PathBaseMatchers
  14. FileSystem
  15. FileWriter
  16. FileReader
  17. EventuallyMatchers
  18. EitherMatchers
  19. EitherBeHaveMatchers
  20. EitherBaseMatchers
  21. OptionMatchers
  22. OptionBeHaveMatchers
  23. OptionBaseMatchers
  24. NumericMatchers
  25. NumericBeHaveMatchers
  26. NumericBaseMatchers
  27. ExceptionMatchers
  28. ExceptionBeHaveMatchers
  29. ExceptionBaseMatchers
  30. BeHaveMatchers
  31. JsonMatchers
  32. JsonBaseBeHaveMatchers
  33. JsonBaseMatchers
  34. Expectations
  35. XmlMatchers
  36. XmlBeHaveMatchers
  37. XmlBaseMatchers
  38. StringMatchers
  39. StringBeHaveMatchers
  40. StringBaseMatchers
  41. MapMatchers
  42. MapBeHaveMatchers
  43. MapBaseMatchers
  44. TraversableMatchers
  45. TraversableBeHaveMatchers
  46. TraversableBaseMatchers
  47. LazyParameters
  48. AnyMatchers
  49. AnyBeHaveMatchers
  50. AnyBaseMatchers
  51. AnyRef
  52. Any
Visibility
  1. Public
  2. All

Type Members

  1. class AnyBeHaveMatchers [T] extends AnyRef

  2. class AnyMatcherResult extends AnyRef

  3. class AnyRefMatcherResult [T <: AnyRef] extends AnyRef

  4. class AnyWithEmptyMatchers [T] extends AnyRef

  5. class BeLikeResultMatcher [T] extends AnyRef

  6. class CanBeEqual [T] extends AnyRef

  7. class ClassMatcherResult extends AnyRef

  8. class Descriptible [T] extends AnyRef

  9. class MatchResultFunctionVerification [U, T] extends AnyRef

  10. class MatcherFunction [S, T] extends AnyRef

  11. class MatcherFunction2 [T] extends AnyRef

  12. class SeqMatcher [S, T] extends Matcher[Seq[T]]

    The SeqMatcher class is a matcher matching a sequence of objects with a matcher returned by a function.

  13. class SetMatcher [S, T] extends Matcher[Set[T]]

    The SetMatcher class is a matcher matching a set of objects with a matcher returned by a function.

Value Members

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

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

    Attributes
    final
    Definition Classes
    Any
  3. def !=/ (s: String): AdaptableMatcher[Any]

    matches if a.

    matches if a.toLowerCase.trim != b.toLowerCase.trim

    Definition Classes
    StringBaseMatchers
  4. def !== [T] (t: ⇒ T): Matcher[T]

    matches if a != b

    matches if a != b

    Definition Classes
    AnyBaseMatchers
  5. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  6. def */ (pair: (String, Any)): JsonDeepPairMatcher

    match if the document contains the pair at any level

    match if the document contains the pair at any level

    Definition Classes
    JsonBaseMatchers
  7. def */ (value: String): JsonDeepValueMatcher

    match if the document contains the value at any level

    match if the document contains the value at any level

    Definition Classes
    JsonBaseMatchers
  8. def / (pair: (String, Any)): 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
  9. def / (value: String): 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
  10. def < [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

    alias for beLessThan

    alias for beLessThan

    Definition Classes
    NumericBaseMatchers
  11. def <= [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

    alias for beLessThanOrEqualTo

    alias for beLessThanOrEqualTo

    Definition Classes
    NumericBaseMatchers
  12. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  14. def ==/ (node: Elem): EqualIgnoringSpaceMatcher

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

    Definition Classes
    XmlBaseMatchers
  15. def ==/ (node: Seq[Node]): EqualIgnoringSpaceMatcher

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

    Definition Classes
    XmlBaseMatchers
  16. def ==/ (s: String): AdaptableMatcher[Any]

    matches if a.

    matches if a.toLowerCase.trim = b.toLowerCase.trim

    Definition Classes
    StringBaseMatchers
  17. def === [T] (t: ⇒ T): BeTypedEqualTo[T]

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  18. def ==~ [T, S] (s: ⇒ S)(implicit convert: (S) ⇒ T): Matcher[T]

    matches if a == b after an implicit conversion

    matches if a == b after an implicit conversion

    Definition Classes
    AnyBaseMatchers
  19. def =~ (t: ⇒ String): BeMatching

    alias for beMatching but matching just a fragment of the string

    alias for beMatching but matching just a fragment of the string

    Definition Classes
    StringBaseMatchers
  20. def > [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    alias for beGreaterThan

    alias for beGreaterThan

    Definition Classes
    NumericBaseMatchers
  21. def >= [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    alias for beGreaterThanOrEqualTo

    alias for beGreaterThanOrEqualTo

    Definition Classes
    NumericBaseMatchers
  22. implicit def ToDelta [S] (n: S)(implicit arg0: Numeric[S]): CanHaveDelta[S]

    implicit definition to create delta for the beCloseTo matcher

    implicit definition to create delta for the beCloseTo matcher

    Attributes
    implicit
    Definition Classes
    NumericBaseMatchers
  23. def \ (label: String, attributeValues1: (String, String), attributeValues: (String, String)*): XmlMatcher

    alias for \\(node, attributeValues) with the node label only

    alias for \\(node, attributeValues) with the node label only

    Definition Classes
    XmlBaseMatchers
  24. def \ (node: Node, attributeValues1: (String, String), attributeValues: (String, String)*): XmlMatcher

    match if node is the first node of the tested node and has exactly the attributeValues as names and values for its attributes

    match if node is the first node of the tested node and has exactly the attributeValues as names and values for its attributes

    Definition Classes
    XmlBaseMatchers
  25. def \ (label: String, attributes: String*): XmlMatcher

    alias for \(node) with the node label only

    alias for \(node) with the node label only

    Definition Classes
    XmlBaseMatchers
  26. def \ (node: Node): XmlMatcher

    match if node is the first node of the tested node

    match if node is the first node of the tested node

    Definition Classes
    XmlBaseMatchers
  27. def \ (node: Node, attributes: String*): XmlMatcher

    match if node is the first node of the tested node an exact match on is required on attributes

    match if node is the first node of the tested node an exact match on is required on attributes

    Definition Classes
    XmlBaseMatchers
  28. def \\ (label: String, attributeValues1: (String, String), attributeValues: (String, String)*): XmlMatcher

    alias for \\(node, attributeValues) with the node label only

    alias for \\(node, attributeValues) with the node label only

    Definition Classes
    XmlBaseMatchers
  29. def \\ (node: Node, attributeValues1: (String, String), attributeValues: (String, String)*): XmlMatcher

    match if node is contained anywhere inside the tested node and has exactly the attributeValues as names and values for its attributes

    match if node is contained anywhere inside the tested node and has exactly the attributeValues as names and values for its attributes

    Definition Classes
    XmlBaseMatchers
  30. def \\ (label: String, attributes: String*): XmlMatcher

    alias for \\(node) with the node label only

    alias for \\(node) with the node label only

    Definition Classes
    XmlBaseMatchers
  31. def \\ (node: Node): XmlMatcher

    match if node is contained anywhere inside the tested node

    match if node is contained anywhere inside the tested node

    Definition Classes
    XmlBaseMatchers
  32. def \\ (node: Node, attributes: String*): XmlMatcher

    match if node is contained anywhere inside the tested node an exact match on is required on attributes

    match if node is contained anywhere inside the tested node an exact match on is required on attributes

    Definition Classes
    XmlBaseMatchers
  33. def aDirectory [T <: AnyRef { def getPath(): String }] : Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  34. def aDirectoryPath : PathMatcher

    Definition Classes
    PathBeHaveMatchers
  35. def aFile [T <: AnyRef { def getPath(): String }] : Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  36. def aFilePath : PathMatcher

    Definition Classes
    PathBeHaveMatchers
  37. def aHiddenPath : PathMatcher

    Definition Classes
    PathBeHaveMatchers
  38. def aReadablePath : PathMatcher

    Definition Classes
    PathBeHaveMatchers
  39. def aWritablePath : PathMatcher

    Definition Classes
    PathBeHaveMatchers
  40. def absolute [T <: AnyRef { def getPath(): String }] : Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  41. def absolutePath [T <: AnyRef { def getPath(): String }] (path: String): Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  42. implicit def akaMust [T] (tm: Expectable[T]): MustExpectable[T]

    Attributes
    implicit
    Definition Classes
    MustThrownExpectations → MustExpectations
  43. def anAbsolutePath : PathMatcher

    Definition Classes
    PathBeHaveMatchers
  44. def anExistingPath : PathMatcher

    Definition Classes
    PathBeHaveMatchers
  45. def anInstanceOf [T] (implicit arg0: ClassManifest[T]): Matcher[Any]

    Definition Classes
    AnyBeHaveMatchers
  46. implicit def anyBeHaveMatcher [T] (result: MatchResult[T]): AnyBeHaveMatchers[T]

    Attributes
    implicit
    Definition Classes
    AnyBeHaveMatchers
  47. implicit def anyWithEmpty [T] (result: MatchResult[T])(implicit arg0: (T) ⇒ Any { def isEmpty: Boolean }): AnyWithEmptyMatchers[T]

    Attributes
    implicit
    Definition Classes
    AnyBeHaveMatchers
  48. def append (path: String)(function: (Writer) ⇒ Unit): Unit

    append some content to a file and take care of closing the file.

    append some content to a file and take care of closing the file.

    Usage: write("./dir/hello.txt") { out => out.write("content") }

    path

    path of the file to write

    Definition Classes
    FileWriter
  49. def appendToFile (path: String, content: ⇒ String): Unit

    writes some content to a file.

    writes some content to a file.

    path

    path of the file to read

    content

    content of the file to write

    Definition Classes
    FileWriter
  50. def appendToXmlFile (path: String, content: ⇒ NodeSeq): Unit

    writes some xml content to a file.

    writes some xml content to a file.

    path

    path of the file to read

    content

    content of the file to write

    Definition Classes
    FileWriter
  51. def asAbsolutePath (name: String): PathMatcher

    Definition Classes
    PathBeHaveMatchers
  52. def asCanonicalPath (name: String): PathMatcher

    Definition Classes
    PathBeHaveMatchers
  53. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  54. def asNoneAs [T] (other: ⇒ Option[T]): Matcher[Option[T]]

    Definition Classes
    OptionBaseMatchers
  55. def asNullAs [T] (a: ⇒ T): Matcher[T]

    Definition Classes
    AnyBeHaveMatchers
  56. implicit def asResult [T] (r: MatchResult[T]): Result

    implicit definition to transform any MatchResult to a Result

    implicit definition to transform any MatchResult to a Result

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  57. def assignableFrom [T] (implicit arg0: ClassManifest[T]): Matcher[Class[_]]

    Definition Classes
    AnyBeHaveMatchers
  58. def atLeastOnce [T, U] (values: GenTraversable[T])(f: (T) ⇒ MatchResult[U]): MatchResult[Seq[T]]

    verify the function f for at least one value

    verify the function f for at least one value

    Definition Classes
    MatchersImplicits
  59. def atLeastOnceWhen [T, U] (values: GenTraversable[T])(f: PartialFunction[T, MatchResult[U]]): MatchResult[Seq[T]]

    verify the function f for at least one value, where the PartialFunction is defined

    verify the function f for at least one value, where the PartialFunction is defined

    Definition Classes
    MatchersImplicits
  60. def be : NeutralMatcher[Any]

    Definition Classes
    BeHaveMatchers
  61. def be [T <: AnyRef] (t: ⇒ T): BeTheSameAs[T]

    alias for beTheSameAs

    alias for beTheSameAs

    Definition Classes
    AnyBaseMatchers
  62. def beADirectory [T <: AnyRef { def getPath(): String }] : Matcher[T]

    matches if file.

    matches if file.isDirectory

    Definition Classes
    FileBaseMatchers
  63. def beADirectoryPath : PathMatcher

    matches if new File(path).

    matches if new File(path).isDirectory

    Definition Classes
    PathBaseMatchers
  64. def beAFile [T <: AnyRef { def getPath(): String }] : Matcher[T]

    matches if file.

    matches if file.isFile

    Definition Classes
    FileBaseMatchers
  65. def beAFilePath : PathMatcher

    matches if new File(path).

    matches if new File(path).isFile

    Definition Classes
    PathBaseMatchers
  66. def beAHiddenPath : PathMatcher

    matches if new File(path).

    matches if new File(path).isHidden

    Definition Classes
    PathBaseMatchers
  67. def beAReadablePath : PathMatcher

    matches if new File(path).

    matches if new File(path).canRead

    Definition Classes
    PathBaseMatchers
  68. def beAWritablePath : PathMatcher

    matches if new File(path).

    matches if new File(path).canWrite

    Definition Classes
    PathBaseMatchers
  69. def beAbsolute [T <: AnyRef { def getPath(): String }] : Matcher[T]

    matches if file.

    matches if file.isAbsolute

    Definition Classes
    FileBaseMatchers
  70. def beAnAbsolutePath : PathMatcher

    matches if new File(path).

    matches if new File(path).isAbsolute

    Definition Classes
    PathBaseMatchers
  71. def beAnExistingPath : PathMatcher

    matches if new File(path).

    matches if new File(path).exists

    Definition Classes
    PathBaseMatchers
  72. def beAnInstanceOf [T] (implicit arg0: ClassManifest[T]): Matcher[Any]

    Definition Classes
    AnyBaseMatchers
  73. def beAsNoneAs [T] (other: ⇒ Option[T]): Matcher[Option[T]]

    Definition Classes
    OptionBaseMatchers
  74. def beAsNullAs [T] (a: ⇒ T): Matcher[T]

    matches if a is null when v is null and a is not null when v is not null

    matches if a is null when v is null and a is not null when v is not null

    Definition Classes
    AnyBaseMatchers
  75. def beAssignableFrom [T] (implicit arg0: ClassManifest[T]): Matcher[Class[_]]

    matches if v.

    matches if v.isAssignableFrom(c)

    Definition Classes
    AnyBaseMatchers
  76. def beCloseTo [S] (delta: Delta[S])(implicit arg0: Numeric[S]): Matcher[S]

    matches if x = n +/- delta

    matches if x = n +/- delta

    Definition Classes
    NumericBaseMatchers
  77. def beCloseTo [S] (n: S, delta: S)(implicit arg0: Numeric[S]): Matcher[S]

    matches if x = n +/- delta

    matches if x = n +/- delta

    Definition Classes
    NumericBaseMatchers
  78. def beDefinedAt [K] (values: K*): Matcher[PartialFunction[K, Any]]

    matches if the partial function is defined at those values

    matches if the partial function is defined at those values

    Definition Classes
    MapBaseMatchers
  79. def beDefinedBy [K, V] (values: (K, V)*): Matcher[PartialFunction[K, V]]

    matches if the partial function is defined at those values and return expected values

    matches if the partial function is defined at those values and return expected values

    Definition Classes
    MapBaseMatchers
  80. def beEmpty [T] (implicit arg0: (T) ⇒ Any { def isEmpty: Boolean }): Matcher[T]

    matches if a.

    matches if a.isEmpty

    Definition Classes
    AnyBaseMatchers
  81. def beEqualTo [T] (t: ⇒ T): BeEqualTo

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  82. def beEqualToIgnoringSep (other: String): PathMatcher

    matches if 2 paths are the same regardless of their separators

    matches if 2 paths are the same regardless of their separators

    Definition Classes
    PathBaseMatchers
  83. def beEqualToIgnoringSpace (node: Seq[Node]): EqualIgnoringSpaceMatcher

    match if node is equal to the tested node without testing empty text

    match if node is equal to the tested node without testing empty text

    Definition Classes
    XmlBaseMatchers
  84. def beFalse : Matcher[Boolean]

    matches if a == false

    matches if a == false

    Definition Classes
    AnyBaseMatchers
  85. def beGreaterThan [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    matches if x > n

    matches if x > n

    Definition Classes
    NumericBaseMatchers
  86. def beGreaterThanOrEqualTo [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    matches if x >= n

    matches if x >= n

    Definition Classes
    NumericBaseMatchers
  87. def beHidden [T <: AnyRef { def getPath(): String }] : Matcher[T]

    matches if file.

    matches if file.isHidden

    Definition Classes
    FileBaseMatchers
  88. def beLeft [T] : LeftMatcher[T]

    Definition Classes
    EitherBaseMatchers
  89. def beLeft [T] (t: ⇒ T): Matcher[Either[T, _]]

    Definition Classes
    EitherBaseMatchers
  90. def beLessThan [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

    matches if x < n

    matches if x < n

    Definition Classes
    NumericBaseMatchers
  91. def beLessThanOrEqualTo [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

    matches if x <= n

    matches if x <= n

    Definition Classes
    NumericBaseMatchers
  92. def beLike [T] (pattern: PartialFunction[T, org.specs2.matcher.MatchResult[_]]): Matcher[T]

    matches if the value returns a successful result when applied to a PartialFunction

    matches if the value returns a successful result when applied to a PartialFunction

    Definition Classes
    AnyBaseMatchers
  93. def beLikeA [T] (pattern: ⇒ PartialFunction[T, org.specs2.matcher.MatchResult[_]]): Matcher[T]

    Definition Classes
    AnyBeHaveMatchers
  94. def beMatching (t: ⇒ String): BeMatching

    matches if b matches the regular expression a

    matches if b matches the regular expression a

    Definition Classes
    StringBaseMatchers
  95. def beNone : Matcher[Option[Any]]

    Definition Classes
    OptionBaseMatchers
  96. def beNull [T] : BeNull[T]

    matches if the value is null

    matches if the value is null

    Definition Classes
    AnyBaseMatchers
  97. def beOneOf [T] (t: T*): Matcher[T]

    matches if t.

    matches if t.toSeq.exists(_ == v)

    Definition Classes
    AnyBaseMatchers
  98. def beReadable [T <: AnyRef { def getPath(): String }] : Matcher[T]

    matches if file.

    matches if file.canRead

    Definition Classes
    FileBaseMatchers
  99. def beRight [T] : RightMatcher[T]

    Definition Classes
    EitherBaseMatchers
  100. def beRight [T] (t: ⇒ T): Matcher[Either[_, T]]

    Definition Classes
    EitherBaseMatchers
  101. def beSome [T] : SomeMatcher[T]

    Definition Classes
    OptionBaseMatchers
  102. def beSome [T] (t: ⇒ T): Matcher[Option[T]]

    Definition Classes
    OptionBaseMatchers
  103. def beSorted [T] (implicit arg0: Ordering[T]): OrderingMatcher[T]

    returns

    a matcher checking if the elements are ordered

    Definition Classes
    TraversableBaseMatchers
  104. def beTheSameAs [T <: AnyRef] (t: ⇒ T): BeTheSameAs[T]

    matches if a eq b

    matches if a eq b

    Definition Classes
    AnyBaseMatchers
  105. def beTrue : BeTrueMatcher

    matches if a == true

    matches if a == true

    Definition Classes
    AnyBaseMatchers
  106. def beTypedEqualTo [T] (t: ⇒ T): BeTypedEqualTo[T]

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  107. def beWritable [T <: AnyRef { def getPath(): String }] : Matcher[T]

    matches if file.

    matches if file.canWrite

    Definition Classes
    FileBaseMatchers
  108. def be_!= [T] (t: ⇒ T): Matcher[Any]

    matches if a != b

    matches if a != b

    Definition Classes
    AnyBaseMatchers
  109. def be_!=/ (a: String): AdaptableMatcher[Any]

    matches if a.

    matches if a.toLowerCase.trim != b.toLowerCase.trim

    Definition Classes
    StringBaseMatchers
  110. def be_!== [T] (t: ⇒ T): Matcher[T]

    matches if a != b

    matches if a != b

    Definition Classes
    AnyBaseMatchers
  111. def be_< [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

    alias for beLessThan

    alias for beLessThan

    Definition Classes
    NumericBaseMatchers
  112. def be_<= [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

    alias for beLessThanOrEqualTo

    alias for beLessThanOrEqualTo

    Definition Classes
    NumericBaseMatchers
  113. def be_== [T] (t: ⇒ T): BeEqualTo

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  114. def be_==/ (node: Elem): EqualIgnoringSpaceMatcher

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

    Definition Classes
    XmlBaseMatchers
  115. def be_==/ (node: Seq[Node]): EqualIgnoringSpaceMatcher

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

    Definition Classes
    XmlBaseMatchers
  116. def be_==/ (a: String): AdaptableMatcher[Any]

    matches if a.

    matches if a.toLowerCase.trim = b.toLowerCase.trim

    Definition Classes
    StringBaseMatchers
  117. def be_=== [T] (t: ⇒ T): BeTypedEqualTo[T]

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  118. def be_==~ [T, S] (s: ⇒ S)(implicit convert: (S) ⇒ T): Matcher[T]

    matches if a == b after an implicit conversion

    matches if a == b after an implicit conversion

    Definition Classes
    AnyBaseMatchers
  119. def be_> [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    alias for beGreaterThan

    alias for beGreaterThan

    Definition Classes
    NumericBaseMatchers
  120. def be_>= [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    alias for beGreaterThanOrEqualTo

    alias for beGreaterThanOrEqualTo

    Definition Classes
    NumericBaseMatchers
  121. implicit def canBeEqual [T] (t: ⇒ T): CanBeEqual[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 writting a must_== b

    Attributes
    implicit
    Definition Classes
    Expectations
  122. def canRead (path: String): Boolean

    returns

    true if the file can be read

    Definition Classes
    FileSystem
  123. def canWrite (path: String): Boolean

    returns

    true if the file can be written

    Definition Classes
    FileSystem
  124. def canonicalPath [T <: AnyRef { def getPath(): String }] (path: String): Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  125. 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
  126. 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
    ThrownExpectations → Expectations
  127. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  128. def closeTo [S] (delta: Delta[S])(implicit arg0: Numeric[S]): Matcher[S]

    Definition Classes
    NumericBaseMatchers
  129. def closeTo [S] (n: S, delta: S)(implicit arg0: Numeric[S]): Matcher[S]

    Definition Classes
    NumericBaseMatchers
  130. def contain (t: Char): Matcher[String]

    matches if (b contains a)

    matches if (b contains a)

    Definition Classes
    StringBaseMatchers
  131. def contain (t: String): Matcher[String]

    matches if (b contains a)

    matches if (b contains a)

    Definition Classes
    StringBaseMatchers
  132. def contain [T] (t: LazyParameter[T]*): ContainMatcher[T]

    match if traversable contains (t1, t2)

    match if traversable contains (t1, t2)

    Definition Classes
    TraversableBaseMatchers
  133. def contain [T] (t: ⇒ T): ContainMatcher[T]

    match if an traversable contains (t).

    match if an traversable contains (t). This definition looks redundant with the one below but it is necessary to avoid the implicit argThat method from Mockito to infer an improper matcher

    Definition Classes
    TraversableBaseMatchers
    See also

    the HtmlPrinterSpec failing with a NPE if that method is missing

  134. def containAllOf [T] (seq: Seq[T]): ContainMatcher[T]

    match if traversable contains (seq2).

    match if traversable contains (seq2). n is a dummy paramter to allow overloading

    Definition Classes
    TraversableBaseMatchers
  135. def containAnyOf [T] (seq: Seq[T]): ContainAnyOfMatcher[T]

    match if traversable contains one of (t1, t2)

    match if traversable contains one of (t1, t2)

    Definition Classes
    TraversableBaseMatchers
  136. def containMatch [T] (t: ⇒ String): ContainLikeMatcher[T]

    match if traversable contains (x matches .

    match if traversable contains (x matches .*+t+.*)

    Definition Classes
    TraversableBaseMatchers
  137. def containPattern [T] (t: ⇒ String): ContainLikeMatcher[T]

    match if traversable contains (x matches p)

    match if traversable contains (x matches p)

    Definition Classes
    TraversableBaseMatchers
  138. def containing (s: String): Matcher[String]

    Definition Classes
    StringBeHaveMatchers
  139. def copy (input: InputStream, output: OutputStream): Unit

    Copy an input stream to an output stream.

    Copy an input stream to an output stream.

    input

    input stream

    output

    output stream

    Definition Classes
    FileSystem
  140. def copyDir (src: String, dest: String): Unit

    copy the content of a directory to another.

    copy the content of a directory to another.

    dest

    destination directory path

    Definition Classes
    FileSystem
  141. def copyDir (url: URL, dest: String): Unit

    copy the content of a directory to another.

    copy the content of a directory to another.

    url

    url of the directory to copy

    dest

    destination directory path

    Definition Classes
    FileSystem
  142. def copyFile (path: String, dest: String): Unit

    Copy the content of a directory to another.

    Copy the content of a directory to another.

    path

    path of the file to copy

    dest

    destination directory path

    Definition Classes
    FileSystem
  143. def copySpecResourcesDir (src: String, outputDir: String): Unit

    Copy specs resources found either in the specs jar or in the classpath directories to an output directory

    Copy specs resources found either in the specs jar or in the classpath directories to an output directory

    src

    name of the resource directory to copy

    outputDir

    output directory where to copy the files to

    Definition Classes
    FileSystem
  144. def createDir (path: String): Boolean

    creates a directory for a given path

    creates a directory for a given path

    Definition Classes
    FileSystem
  145. def createExpectable [T] (t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description

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

    returns

    an Expectable

    Definition Classes
    Expectations
  149. def createFile (path: String): AnyVal

    creates a file for a given path.

    creates a file for a given path. Create the parent directory if necessary.

    Definition Classes
    FileWriter
  150. def createMustExpectable [T] (t: ⇒ T): MustExpectable[T]

    Attributes
    protected
    Definition Classes
    MustThrownExpectations → MustExpectations
  151. def definedAt [K] (values: K*): Matcher[PartialFunction[K, Any]]

    Definition Classes
    MapBeHaveMatchers
  152. def definedBy [K, V] (values: (K, V)*): Matcher[PartialFunction[K, V]]

    Definition Classes
    MapBeHaveMatchers
  153. def delete (path: String): Boolean

    delete a file

    delete a file

    Definition Classes
    FileWriter
  154. implicit def describe [T] (t: ⇒ T): Descriptible[T]

    describe a value with the aka method

    describe a value with the aka method

    Attributes
    implicit
    Definition Classes
    Expectations
  155. def empty [T <: Any { def isEmpty: Boolean }] : Matcher[T]

    Definition Classes
    AnyBeHaveMatchers
  156. def endWith (t: ⇒ String): Matcher[String]

    matches if b.

    matches if b.endsWith(a)

    Definition Classes
    StringBaseMatchers
  157. def endingWith (s: String): Matcher[String]

    Definition Classes
    StringBeHaveMatchers
  158. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  159. def equalTo [T] (t: ⇒ T): BeEqualTo

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  160. def equalToIgnoringSep (other: String): PathMatcher

    Definition Classes
    PathBeHaveMatchers
  161. def equalToIgnoringSpace (node: Elem): EqualIgnoringSpaceMatcher

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

    Definition Classes
    XmlBaseMatchers
  162. def equalToIgnoringSpace (node: Seq[Node]): EqualIgnoringSpaceMatcher

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

    Definition Classes
    XmlBaseMatchers
  163. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  164. def eventually [T] (nested: ⇒ Matcher[T]): Matcher[T]

    returns

    a matcher that will retry the nested matcher a given 40 times

    Definition Classes
    EventuallyMatchers
  165. def eventually [T] (retries: Int, sleep: Duration)(nested: ⇒ Matcher[T]): Matcher[T]

    returns

    a matcher that will retry the nested matcher a given number of times

    Definition Classes
    EventuallyMatchers
  166. def exist [T <: AnyRef { def getPath(): String }] : Matcher[T]

    matches if file.

    matches if file.exists

    Definition Classes
    FileBaseMatchers
  167. def exists (path: String): Boolean

    returns

    true if the file exists

    Definition Classes
    FileWriter
  168. def failure (f: Failure): Nothing

    Attributes
    protected
    Definition Classes
    ThrownExpectations
  169. def failure (m: String): Nothing

    Attributes
    protected
    Definition Classes
    ThrownExpectations
  170. def filePaths (basePath: String = ".", path: String = "*", verbose: Boolean = false): Seq[String]

    path

    glob expression, for example: ./dir/**/.xml

    returns

    the list of paths represented by the "glob" definition path

    Definition Classes
    FileSystem
  171. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  172. def find (a: String): FindMatcher

    matches if the regexp a is found inside b

    matches if the regexp a is found inside b

    Definition Classes
    StringBaseMatchers
  173. def forall [T, U] (values: GenTraversable[T])(f: (T) ⇒ MatchResult[U]): MatchResult[Seq[T]]

    verify the function f for all the values, stopping after the first failure

    verify the function f for all the values, stopping after the first failure

    Definition Classes
    MatchersImplicits
  174. def forallWhen [T, U] (values: GenTraversable[T])(f: PartialFunction[T, MatchResult[U]]): MatchResult[Seq[T]]

    verify the function f for all the values, stopping after the first failure, where the PartialFunction is defined

    verify the function f for all the values, stopping after the first failure, where the PartialFunction is defined

    Definition Classes
    MatchersImplicits
  175. def foreach [T, U] (values: GenTraversable[T])(f: (T) ⇒ MatchResult[U]): MatchResult[Seq[T]]

    verify the function f for all the values, and collect all failures

    verify the function f for all the values, and collect all failures

    Definition Classes
    MatchersImplicits
  176. def foreachWhen [T, U] (values: GenTraversable[T])(f: PartialFunction[T, MatchResult[U]]): MatchResult[Seq[T]]

    verify the function f for all the values, and collect all failures, where the PartialFunction is defined

    verify the function f for all the values, and collect all failures, where the PartialFunction is defined

    Definition Classes
    MatchersImplicits
  177. implicit def fromMatchResult (r: ⇒ org.specs2.matcher.MatchResult[_]): Boolean

    implicit definition to accept any MatchResult as a Boolean value.

    implicit definition to accept any MatchResult as a Boolean value. It is true if the MatchResult is not an Error or a Failure

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  178. implicit def functionAndKoMessageToMatcher [T] (f: ((T) ⇒ Boolean, (T) ⇒ String)): Matcher[T]

    This method transform a function to a Matcher

    This method transform a function to a Matcher

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  179. implicit def functionAndMessagesToMatcher [T] (f: ((T) ⇒ Boolean, (T) ⇒ String, (T) ⇒ String)): Matcher[T]

    This method transform a function, with function descriptors to a Matcher

    This method transform a function, with function descriptors to a Matcher

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  180. implicit def functionToMatcher [T] (f: ((T) ⇒ Boolean, String)): Matcher[T]

    This method transform a function to a Matcher

    This method transform a function to a Matcher

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  181. implicit def functionToMatcher2 [T] (f: ((T) ⇒ Boolean, String, String)): Matcher[T]

    This method transform a function to a Matcher

    This method transform a function to a Matcher

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  182. def getAbsolutePath (path: String): String

    returns

    the file absolute path

    Definition Classes
    FileSystem
  183. def getCanonicalPath (path: String): String

    returns

    the file canonical path

    Definition Classes
    FileSystem
  184. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  185. def getName (path: String): String

    returns

    the file name

    Definition Classes
    FileSystem
  186. def getParent (path: String): String

    returns

    the file parent path

    Definition Classes
    FileSystem
  187. def getWriter (path: String, append: Boolean = false): Writer

    The getWriter function can be overriden to provide a mock writer writing to the console for example

    The getWriter function can be overriden to provide a mock writer writing to the console for example

    returns

    a Writer object opened on the file designated by path

    Definition Classes
    FileWriter
  188. def globToPattern (glob: String): String

    returns

    the regular expression equivalent to a glob pattern (see the specs for Fragments)

    Definition Classes
    FileSystem
  189. def greaterThan [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    Definition Classes
    NumericBaseMatchers
  190. def greaterThanOrEqualTo [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    Definition Classes
    NumericBaseMatchers
  191. def hashCode (): Int

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

    Definition Classes
    BeHaveMatchers
  193. def have [T] (function: (T) ⇒ Boolean): Matcher[GenTraversable[T]]

    Matches if there is one element in the traversable verifying the function parameter: (traversable.exists(function(_))

    Matches if there is one element in the traversable verifying the function parameter: (traversable.exists(function(_))

    Definition Classes
    TraversableBaseMatchers
  194. def haveAbsolutePath [T <: AnyRef { def getPath(): String }] (path: String): Matcher[T]

    matches if file.

    matches if file.getAbsolutePath == path

    Definition Classes
    FileBaseMatchers
  195. def haveAsAbsolutePath (path: String): PathMatcher

    matches if new File(path).

    matches if new File(path).getAbsolutePath == absolutePath

    Definition Classes
    PathBaseMatchers
  196. def haveAsCanonicalPath (path: String): PathMatcher

    matches if new File(path).

    matches if new File(path).getCanonicalPath == canonicalPath

    Definition Classes
    PathBaseMatchers
  197. def haveCanonicalPath [T <: AnyRef { def getPath(): String }] (path: String): Matcher[T]

    matches if file.

    matches if file.getCanonicalPath == path

    Definition Classes
    FileBaseMatchers
  198. def haveClass [T] (implicit arg0: ClassManifest[T]): Matcher[Any]

    matches if v.

    matches if v.getClass == c

    Definition Classes
    AnyBaseMatchers
  199. def haveInterface [T] (implicit arg0: ClassManifest[T]): Matcher[Any]

    matches if x.

    matches if x.getClass.getInterfaces.contains(T)

    Definition Classes
    AnyBaseMatchers
  200. def haveKey [K] (k: K): Matcher[Iterable[(K, Any)]]

    matches if map.

    matches if map.contains(k)

    Definition Classes
    MapBaseMatchers
  201. def haveLength [T] (n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  202. def haveList [T <: AnyRef { def getPath(): String }] (list: String): Matcher[T]

    matches if file.

    matches if file.list == list

    Definition Classes
    FileBaseMatchers
  203. def haveName [T <: AnyRef { def getPath(): String }] (name: String): Matcher[T]

    matches if file.

    matches if file.getName == name

    Definition Classes
    FileBaseMatchers
  204. def havePair [K, V] (p: (K, V)): Matcher[Iterable[(K, V)]]

    matches if map contains a pair (key, value) == (k, v)

    matches if map contains a pair (key, value) == (k, v)

    Definition Classes
    MapBaseMatchers
  205. def havePairs [K, V] (pairs: (K, V)*): Matcher[Iterable[(K, V)]]

    matches if map contains all the specified pairs

    matches if map contains all the specified pairs

    Definition Classes
    MapBaseMatchers
  206. def haveParent [T <: AnyRef { def getPath(): String }] (path: String): Matcher[T]

    matches if file.

    matches if file.getParent == path

    Definition Classes
    FileBaseMatchers
  207. def haveParentPath (parent: String): PathMatcher

    matches if new File(path).

    matches if new File(path).getParent == parent

    Definition Classes
    PathBaseMatchers
  208. def havePathName (name: String): PathMatcher

    matches if new File(path).

    matches if new File(path).getName == name

    Definition Classes
    PathBaseMatchers
  209. def haveSize [T] (n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    match if there is a way to size T

    match if there is a way to size T

    Definition Classes
    TraversableBaseMatchers
  210. def haveSuperclass [T] (implicit arg0: ClassManifest[T]): Matcher[Any]

    matches if c.

    matches if c.isAssignableFrom(v.getClass.getSuperclass)

    Definition Classes
    AnyBaseMatchers
  211. def haveTheSameElementsAs [T] (l: ⇒ Traversable[T]): HaveTheSameElementsAs[T]

    Matches if there l contains the same elements as the Traversable traversable.

    Matches if there l contains the same elements as the Traversable traversable.
    This verification does not consider the order of the elements but checks the traversables recursively

    Definition Classes
    TraversableBaseMatchers
  212. def haveValue [V] (v: V): Matcher[Iterable[(Any, V)]]

    matches if map contains a pair (key, value) with value == v

    matches if map contains a pair (key, value) with value == v

    Definition Classes
    MapBaseMatchers
  213. def hidden [T <: AnyRef { def getPath(): String }] : Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  214. def inputStream (filePath: String): InputStream

    returns

    a FileInputStream for a given file path

    Definition Classes
    FileReader
  215. def interface [T] (implicit arg0: ClassManifest[T]): Matcher[Any]

    Definition Classes
    AnyBeHaveMatchers
  216. def isAbsolute (path: String): Boolean

    returns

    true if the file is absolute

    Definition Classes
    FileSystem
  217. def isDir (path: String): Boolean

    returns

    true if the File represented by this path is a directory

    Definition Classes
    FileSystem
  218. def isDirectory (path: String): Boolean

    returns

    true if the file is a directory

    Definition Classes
    FileSystem
  219. def isFile (path: String): Boolean

    returns

    true if the file is a file

    Definition Classes
    FileSystem
  220. def isHidden (path: String): Boolean

    returns

    true if the file is hidden

    Definition Classes
    FileSystem
  221. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  222. implicit def javaCollectionIsSized [T <: java.util.Collection[_]] : Sized[T]

    any java collection has a size

    any java collection has a size

    Attributes
    implicit
    Definition Classes
    TraversableBaseMatchers
  223. def key [K] (k: K): Matcher[Iterable[(K, Any)]]

    Definition Classes
    MapBeHaveMatchers
  224. def klass [T] (implicit arg0: ClassManifest[T]): Matcher[Any]

    Definition Classes
    AnyBeHaveMatchers
  225. implicit def lazyfy [T] (value: ⇒ T): LazyParameter[T]

    transform a value to a zero-arg function returning that value

    transform a value to a zero-arg function returning that value

    Attributes
    implicit
    Definition Classes
    LazyParameters
  226. def left [T] : LeftMatcher[Nothing]

    Definition Classes
    EitherBaseMatchers
  227. def left [T] (t: ⇒ T): Matcher[Either[T, _]]

    Definition Classes
    EitherBaseMatchers
  228. def length [T] (n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  229. def lessThan [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

    Definition Classes
    NumericBaseMatchers
  230. def lessThanOrEqualTo [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

    Definition Classes
    NumericBaseMatchers
  231. def like [T] (pattern: ⇒ PartialFunction[T, org.specs2.matcher.MatchResult[_]]): Matcher[T]

    Definition Classes
    AnyBeHaveMatchers
  232. def likeA [T] (pattern: ⇒ PartialFunction[T, org.specs2.matcher.MatchResult[_]]): Matcher[T]

    Definition Classes
    AnyBeHaveMatchers
  233. def listFiles (path: String): List[String]

    returns

    the files of that directory

    Definition Classes
    FileSystem
  234. def listPaths (list: String*): PathMatcher

    matches if new File(path).

    matches if new File(path).list == list(files)

    Definition Classes
    PathBaseMatchers
  235. def loadXhtmlFile (filePath: String): NodeSeq

    returns

    the xml content of a file using the Xhtml parser

    if the file contains several nodes, it wraps them up in a single artificial node

    Definition Classes
    FileReader
  236. def loadXmlFile (filePath: String): NodeSeq

    returns

    the xml content of a file, using the XML parser

    Definition Classes
    FileReader
  237. implicit def matchResultFunctionToMatcher [T] (f: (T) ⇒ org.specs2.matcher.MatchResult[_]): Matcher[T]

    This method transform a function returning a MatchResult to a Matcher

    This method transform a function returning a MatchResult to a Matcher

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  238. implicit def matcherFunction [S, T] (f: (S) ⇒ Matcher[T]): MatcherFunction[S, T]

    Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers

    Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  239. implicit def matcherFunction2 [T] (f: (T) ⇒ Matcher[T]): MatcherFunction2[T]

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  240. def matching (t: ⇒ String): BeMatching

    Definition Classes
    StringBeHaveMatchers
  241. def mkdirs (path: String): Boolean

    creates a new directory

    creates a new directory

    Definition Classes
    FileWriter
  242. def name [T <: AnyRef { def getPath(): String }] (name: String): Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  243. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  244. def none : Matcher[Option[Any]]

    Definition Classes
    OptionBaseMatchers
  245. def not : NotMatcher[Any]

    Definition Classes
    BeHaveMatchers
  246. def not [T] (m: Matcher[T]): Matcher[T]

    negate a matcher

    negate a matcher

    Definition Classes
    AnyBaseMatchers
  247. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  248. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  249. def oneOf [T] (t: T*): Matcher[T]

    Definition Classes
    AnyBeHaveMatchers
  250. implicit def orderedSeqMatchResult [T] (result: MatchResult[Seq[T]])(implicit arg0: Ordering[T]): OrderedSeqMatchResult[T]

    Attributes
    implicit
    Definition Classes
    TraversableBeHaveMatchers
  251. def pair [K, V] (p: (K, V)): Matcher[Iterable[(K, V)]]

    Definition Classes
    MapBeHaveMatchers
  252. implicit def pairFunctionToMatcher [T] (f: (T) ⇒ (Boolean, String)): Matcher[T]

    This method transform a function returning a pair (Boolean, String for ko message) to a Matcher

    This method transform a function returning a pair (Boolean, String for ko message) to a Matcher

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  253. def pairs [K, V] (pairs: (K, V)*): Matcher[Iterable[(K, V)]]

    Definition Classes
    MapBeHaveMatchers
  254. def parent [T <: AnyRef { def getPath(): String }] (path: String): Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  255. def parentPath (parent: String): PathMatcher

    Definition Classes
    PathBeHaveMatchers
  256. def pathName (name: String): PathMatcher

    Definition Classes
    PathBeHaveMatchers
  257. def paths [T <: AnyRef { def getPath(): String }] (list: String): Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  258. def readFile (path: String): String

    reads the content of a file

    reads the content of a file

    path

    the path of the file to read

    returns

    the content of the file at path

    Definition Classes
    FileReader
  259. def readLines (path: String): IndexedSeq[String]

    Definition Classes
    FileReader
  260. def readable [T <: AnyRef { def getPath(): String }] : Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  261. def removeDir (path: String): String

    deletes the directory and all directory content at the specified path and return the parent path of that directory

    deletes the directory and all directory content at the specified path and return the parent path of that directory

    Definition Classes
    FileSystem
  262. def right [T] : RightMatcher[Nothing]

    Definition Classes
    EitherBaseMatchers
  263. def right [T] (t: ⇒ T): Matcher[Either[_, T]]

    Definition Classes
    EitherBaseMatchers
  264. implicit def scalaArrayIsSized [T] : Sized[Array[T]]

    any scala array has a size

    any scala array has a size

    Attributes
    implicit
    Definition Classes
    TraversableBaseMatchers
  265. implicit def scalaTraversableIsSized [I <: scala.collection.GenTraversableOnce[_]] : Sized[I]

    any scala collection has a size

    any scala collection has a size

    Attributes
    implicit
    Definition Classes
    TraversableBaseMatchers
  266. implicit def seqToResult [T] (r: Seq[MatchResult[T]]): Result

    implicit definition to transform a Seq of MatchResults to a Result

    implicit definition to transform a Seq of MatchResults to a Result

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  267. def size [T] (n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  268. implicit def sized [T] (s: MatchResult[T])(implicit arg0: Sized[T]): HasSize[T]

    Attributes
    implicit
    Definition Classes
    TraversableBeHaveMatchers
  269. def skipped (s: Skipped): Nothing

    Attributes
    protected
    Definition Classes
    ThrownExpectations
  270. def skipped (m: String): Nothing

    Attributes
    protected
    Definition Classes
    ThrownExpectations
  271. def some [T] : SomeMatcher[T]

    Definition Classes
    OptionBaseMatchers
  272. def some [T] (t: ⇒ T): Matcher[Option[T]]

    Definition Classes
    OptionBaseMatchers
  273. def sorted [T] (implicit arg0: Ordering[T]): OrderingMatcher[T]

    alias for beSorted

    alias for beSorted

    Definition Classes
    TraversableBaseMatchers
  274. def startWith (t: ⇒ String): Matcher[String]

    matches if b.

    matches if b.startsWith(a)

    Definition Classes
    StringBaseMatchers
  275. def startingWith (s: String): Matcher[String]

    Definition Classes
    StringBeHaveMatchers
  276. implicit def stringIsSized : Sized[String]

    a regular string has a size, without having to be converted to an Traversable

    a regular string has a size, without having to be converted to an Traversable

    Attributes
    implicit
    Definition Classes
    TraversableBaseMatchers
  277. implicit def stringMatcher (m: AdaptableMatcher[Any]): StringMatcher

    adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher

    adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher

    Attributes
    implicit
    Definition Classes
    StringBaseMatchers
  278. def superClass [T] (implicit arg0: ClassManifest[T]): Matcher[Any]

    Definition Classes
    AnyBeHaveMatchers
  279. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  280. implicit def theBlock (t: ⇒ Nothing): MustExpectable[Nothing]

    Attributes
    implicit
    Definition Classes
    MustExpectations
  281. implicit def theValue [T] (t: ⇒ T): MustExpectable[T]

    Attributes
    implicit
    Definition Classes
    MustExpectations
  282. def throwA [E <: Throwable] (e: E): ExceptionMatcher[E]

    returns

    a matcher checking the value of an Exception

    Definition Classes
    ExceptionBaseMatchers
  283. def throwA [E <: Throwable] (message: String = ".*")(implicit m: ClassManifest[E]): Matcher[Any]

    returns

    a matcher checking the type of an Exception and its message (as a regexp)

    Definition Classes
    ExceptionBaseMatchers
  284. def throwA [E <: Throwable] (implicit m: ClassManifest[E]): ExceptionClassMatcher

    returns

    a matcher checking the type of an Exception

    Definition Classes
    ExceptionBaseMatchers
  285. def throwAn [E <: Throwable] (e: E): ExceptionMatcher[E]

    alias for throwA

    alias for throwA

    Definition Classes
    ExceptionBaseMatchers
  286. def throwAn [E <: Throwable] (message: String = ".*")(implicit m: ClassManifest[E]): Matcher[Any]

    alias for throwA

    alias for throwA

    Definition Classes
    ExceptionBaseMatchers
  287. def throwAn [E <: Throwable] (implicit m: ClassManifest[E]): ExceptionClassMatcher

    alias for throwA

    alias for throwA

    Definition Classes
    ExceptionBaseMatchers
  288. implicit def toAnyMatcherResult (result: MatchResult[Any]): AnyMatcherResult

    Attributes
    implicit
    Definition Classes
    AnyBeHaveMatchers
  289. implicit def toAnyRefMatcherResult [T <: AnyRef] (result: MatchResult[T]): AnyRefMatcherResult[T]

    Attributes
    implicit
    Definition Classes
    AnyBeHaveMatchers
  290. implicit def toBeLikeResultMatcher [T] (result: MatchResult[T]): BeLikeResultMatcher[T]

    Attributes
    implicit
    Definition Classes
    AnyBeHaveMatchers
  291. implicit def toClassMatcherResult (result: MatchResult[Class[_]]): ClassMatcherResult

    Attributes
    implicit
    Definition Classes
    AnyBeHaveMatchers
  292. implicit def toEitherResultMatcher [L, R] (result: MatchResult[Either[L, R]]): EitherResultMatcher[L, R]

    Attributes
    implicit
    Definition Classes
    EitherBeHaveMatchers
  293. implicit def toExceptionMatcher [T] (result: MatchResult[T]): ExceptionMatcherResult[T]

    Attributes
    implicit
    Definition Classes
    ExceptionBeHaveMatchers
  294. implicit def toFileResultMatcher [T <: AnyRef { def getPath(): String }] (result: MatchResult[T]): FileResultMatcher[T]

    matcher aliases and implicits to use with BeVerb and HaveVerb

    matcher aliases and implicits to use with BeVerb and HaveVerb

    Attributes
    implicit
    Definition Classes
    FileBeHaveMatchers
  295. implicit def toMapKeyResultMatcher [K] (result: MatchResult[Iterable[(K, Any)]]): MapKeyResultMatcher[K]

    Attributes
    implicit
    Definition Classes
    MapBeHaveMatchers
  296. implicit def toMapResultMatcher [K, V] (result: MatchResult[Iterable[(K, V)]]): MapResultMatcher[K, V]

    Attributes
    implicit
    Definition Classes
    MapBeHaveMatchers
  297. implicit def toMapValueResultMatcher [V] (result: MatchResult[Iterable[(Any, V)]]): MapValueResultMatcher[V]

    Attributes
    implicit
    Definition Classes
    MapBeHaveMatchers
  298. implicit def toNeutralMatcherElem (result: NeutralMatcher[Any]): NeutralMatcherElem

    Attributes
    implicit
    Definition Classes
    XmlBeHaveMatchers
  299. implicit def toNeutralMatcherNumeric (result: NeutralMatcher[Any]): NeutralMatcherNumeric

    Attributes
    implicit
    Definition Classes
    NumericBeHaveMatchers
  300. implicit def toNeutralMatcherOrdered (result: NeutralMatcher[Any]): NeutralMatcherOrdered

    Attributes
    implicit
    Definition Classes
    NumericBeHaveMatchers
  301. implicit def toNeutralStringMatcher (result: NeutralMatcher[Any]): NeutralStringMatcher

    Attributes
    implicit
    Definition Classes
    StringBeHaveMatchers
  302. implicit def toNotMatcherElem (result: NotMatcher[Any]): NotMatcherElem

    Attributes
    implicit
    Definition Classes
    XmlBeHaveMatchers
  303. implicit def toNotMatcherJson (result: NotMatcher[Any]): NotMatcherJson

    Attributes
    implicit
    Definition Classes
    JsonBaseBeHaveMatchers
  304. implicit def toNotStringMatcher (result: NotMatcher[Any]): NotStringMatcher

    Attributes
    implicit
    Definition Classes
    StringBeHaveMatchers
  305. implicit def toNumericResultMatcher [S] (result: MatchResult[S])(implicit arg0: Numeric[S]): NumericResultMatcher[S]

    Attributes
    implicit
    Definition Classes
    NumericBeHaveMatchers
  306. implicit def toOptionResultMatcher [T] (result: MatchResult[Option[T]]): OptionResultMatcher[T]

    Attributes
    implicit
    Definition Classes
    OptionBeHaveMatchers
  307. implicit def toOrderedResultMatcher [S] (result: MatchResult[S])(implicit arg0: (S) ⇒ Ordered[S]): OrderedResultMatcher[S]

    matcher aliases and implicits to use with be + matcher

    matcher aliases and implicits to use with be + matcher

    Attributes
    implicit
    Definition Classes
    NumericBeHaveMatchers
  308. implicit def toPartialFunctionResultMatcher [K, V] (result: MatchResult[PartialFunction[K, V]]): PartialFunctionResultMatcher[K, V]

    Attributes
    implicit
    Definition Classes
    MapBeHaveMatchers
  309. implicit def toPathResultMatcher (result: MatchResult[String]): PathResultMatcher

    matcher aliases and implicits to use with be / have + matcher

    matcher aliases and implicits to use with be / have + matcher

    Attributes
    implicit
    Definition Classes
    PathBeHaveMatchers
  310. implicit def toResult (b: Boolean): Result

    implicit definition to accept any boolean value as a Result This avoids writing b must beTrue

    implicit definition to accept any boolean value as a Result This avoids writing b must beTrue

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  311. def toString (): String

    Definition Classes
    AnyRef → Any
  312. implicit def toStringResultMatcher (result: MatchResult[String]): StringResultMatcher

    Attributes
    implicit
    Definition Classes
    StringBeHaveMatchers
  313. implicit def toXmlResultMatcher (result: MatchResult[Seq[Node]]): XmlResultMatcher

    Attributes
    implicit
    Definition Classes
    XmlBeHaveMatchers
  314. implicit def traversable [T] (s: MatchResult[GenTraversable[T]]): TraversableBeHaveMatchers[T]

    Attributes
    implicit
    Definition Classes
    TraversableBeHaveMatchers
  315. implicit def tripletFunctionToMatcher [T] (f: (T) ⇒ (Boolean, String, String)): Matcher[T]

    This method transform a function returning a triplet (Boolean, String for ok message, String for ko message) to a Matcher

    This method transform a function returning a triplet (Boolean, String for ok message, String for ko message) to a Matcher

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  316. def typedEqualTo [T] (t: ⇒ T): BeTypedEqualTo[T]

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  317. def unjar (path: String, dirPath: String, regexFilter: String): Unit

    Unjar the jar (or zip file) specified by "path" to the "dest" directory.

    Unjar the jar (or zip file) specified by "path" to the "dest" directory. Filters files which shouldn't be extracted with a regular expression.

    path

    path of the jar file

    regexFilter

    regular expression filtering files which shouldn't be extracted

    Definition Classes
    FileSystem
  318. def unjar (path: String, dest: String): Unit

    Unjar the jar (or zip file) specified by "path" to the "dest" directory.

    Unjar the jar (or zip file) specified by "path" to the "dest" directory.

    path

    path of the jar file

    dest

    destination directory path

    Definition Classes
    FileSystem
  319. def value [V] (v: V): Matcher[Iterable[(Any, V)]]

    Definition Classes
    MapBeHaveMatchers
  320. implicit def verifyFunction [U, T] (t: (U) ⇒ MatchResult[T]): MatchResultFunctionVerification[U, T]

    Attributes
    implicit
    Definition Classes
    MatchersImplicits
  321. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  324. def writable [T <: AnyRef { def getPath(): String }] : Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  325. def write (path: String)(function: (Writer) ⇒ Unit): Unit

    writes some content to a file and take care of closing the file.

    writes some content to a file and take care of closing the file.

    Usage: write("./dir/hello.txt") { out => out.write("content") }

    path

    path of the file to write

    Definition Classes
    FileWriter
  326. def writeFile (path: String, content: ⇒ String): Unit

    writes some content to a file.

    writes some content to a file.

    path

    path of the file to read

    content

    content of the file to write

    Definition Classes
    FileWriter
  327. def writeXmlFile (path: String, content: ⇒ NodeSeq): Unit

    writes some xml content to a file.

    writes some xml content to a file.

    path

    path of the file to read

    content

    content of the file to write

    Definition Classes
    FileWriter
  328. def ~ [S] (delta: Delta[S])(implicit arg0: Numeric[S]): Matcher[S]

    alias for beCloseTo

    alias for beCloseTo

    Definition Classes
    NumericBaseMatchers
  329. def ~ [S] (n: S)(delta: S)(implicit arg0: Numeric[S]): Matcher[S]

    alias for beCloseTo

    alias for beCloseTo

    Definition Classes
    NumericBaseMatchers

Inherited from MustThrownMatchers

Inherited from MustThrownExpectations

Inherited from MustExpectations

Inherited from ThrownExpectations

Inherited from Matchers

Inherited from MatchersImplicits

Inherited from FileMatchers

Inherited from FileBeHaveMatchers

Inherited from FileBaseMatchers

Inherited from PathMatchers

Inherited from PathBeHaveMatchers

Inherited from PathBaseMatchers

Inherited from FileSystem

Inherited from FileWriter

Inherited from FileReader

Inherited from EventuallyMatchers

Inherited from EitherMatchers

Inherited from EitherBeHaveMatchers

Inherited from EitherBaseMatchers

Inherited from OptionMatchers

Inherited from OptionBeHaveMatchers

Inherited from OptionBaseMatchers

Inherited from NumericMatchers

Inherited from NumericBeHaveMatchers

Inherited from NumericBaseMatchers

Inherited from ExceptionMatchers

Inherited from ExceptionBeHaveMatchers

Inherited from ExceptionBaseMatchers

Inherited from BeHaveMatchers

Inherited from JsonMatchers

Inherited from JsonBaseBeHaveMatchers

Inherited from JsonBaseMatchers

Inherited from Expectations

Inherited from XmlMatchers

Inherited from XmlBeHaveMatchers

Inherited from XmlBaseMatchers

Inherited from StringMatchers

Inherited from StringBeHaveMatchers

Inherited from StringBaseMatchers

Inherited from MapMatchers

Inherited from MapBeHaveMatchers

Inherited from MapBaseMatchers

Inherited from TraversableMatchers

Inherited from TraversableBeHaveMatchers

Inherited from TraversableBaseMatchers

Inherited from LazyParameters

Inherited from AnyMatchers

Inherited from AnyBeHaveMatchers

Inherited from AnyBaseMatchers

Inherited from AnyRef

Inherited from Any