org.specs2.mutable

Specification

trait Specification extends SpecificationStructure with SpecificationFeatures

Linear Supertypes
SpecificationFeatures, Debug, Contexts, PendingUntilFixed, TimeConversions, AutoExamples, StandardMatchResults, StandardResults, FormattingFragments, ShouldThrownMatchers, ShouldThrownExpectations, ShouldExpectations, 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, ArgumentsShortcuts, ArgumentsArgs, ArgumentsArgs, ArgProperties, SpecificationInclusion, SpecificationInclusion, FragmentsBuilder, FragmentsBuilder, RegexSteps, SpecificationStructure, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Specification
  2. SpecificationFeatures
  3. Debug
  4. Contexts
  5. PendingUntilFixed
  6. TimeConversions
  7. AutoExamples
  8. StandardMatchResults
  9. StandardResults
  10. FormattingFragments
  11. ShouldThrownMatchers
  12. ShouldThrownExpectations
  13. ShouldExpectations
  14. MustThrownMatchers
  15. MustThrownExpectations
  16. MustExpectations
  17. ThrownExpectations
  18. Matchers
  19. MatchersImplicits
  20. FileMatchers
  21. FileBeHaveMatchers
  22. FileBaseMatchers
  23. PathMatchers
  24. PathBeHaveMatchers
  25. PathBaseMatchers
  26. FileSystem
  27. FileWriter
  28. FileReader
  29. EventuallyMatchers
  30. EitherMatchers
  31. EitherBeHaveMatchers
  32. EitherBaseMatchers
  33. OptionMatchers
  34. OptionBeHaveMatchers
  35. OptionBaseMatchers
  36. NumericMatchers
  37. NumericBeHaveMatchers
  38. NumericBaseMatchers
  39. ExceptionMatchers
  40. ExceptionBeHaveMatchers
  41. ExceptionBaseMatchers
  42. BeHaveMatchers
  43. JsonMatchers
  44. JsonBaseBeHaveMatchers
  45. JsonBaseMatchers
  46. Expectations
  47. XmlMatchers
  48. XmlBeHaveMatchers
  49. XmlBaseMatchers
  50. StringMatchers
  51. StringBeHaveMatchers
  52. StringBaseMatchers
  53. MapMatchers
  54. MapBeHaveMatchers
  55. MapBaseMatchers
  56. TraversableMatchers
  57. TraversableBeHaveMatchers
  58. TraversableBaseMatchers
  59. LazyParameters
  60. AnyMatchers
  61. AnyBeHaveMatchers
  62. AnyBaseMatchers
  63. ArgumentsShortcuts
  64. ArgumentsArgs
  65. ArgumentsArgs
  66. ArgProperties
  67. SpecificationInclusion
  68. SpecificationInclusion
  69. FragmentsBuilder
  70. FragmentsBuilder
  71. RegexSteps
  72. SpecificationStructure
  73. AnyRef
  74. Any
Visibility
  1. Public
  2. All

Type Members

  1. class AfterResult [T] extends AnyRef

  2. class AnyBeHaveMatchers [T] extends AnyRef

  3. class AnyMatcherResult extends AnyRef

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

  5. class AnyWithEmptyMatchers [T] extends AnyRef

  6. class AroundResult [T] extends AnyRef

  7. class BeLikeResultMatcher [T] extends AnyRef

  8. class BeforeResult [T] extends AnyRef

  9. class CanBeEqual [T] extends AnyRef

  10. class ClassMatcherResult extends AnyRef

  11. class Described extends AnyRef

  12. class Descriptible [T] extends AnyRef

  13. class InExample extends AnyRef

    transient class to hold an example description before creating a full Example

  14. class MatchResultFunctionVerification [U, T] extends AnyRef

  15. class MatcherFunction [S, T] extends AnyRef

  16. class MatcherFunction2 [T] extends AnyRef

  17. class MutableSpecTitle extends SpecTitle

  18. class PendingUntilFixed [T] extends AnyRef

  19. class RichLong extends AnyRef

  20. 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.

  21. 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 RegexFragmentToFragments (r: RegexFragment): Fragments

    at any point in time a regex sequence can be transformed as a sequence of Fragments

    at any point in time a regex sequence can be transformed as a sequence of Fragments

    Attributes
    implicit
    Definition Classes
    RegexSteps
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. def aDirectory [T <: AnyRef { def getPath(): String }] : Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  35. def aDirectoryPath : PathMatcher

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

    Definition Classes
    FileBeHaveMatchers
  37. def aFilePath : PathMatcher

    Definition Classes
    PathBeHaveMatchers
  38. def aHiddenPath : PathMatcher

    Definition Classes
    PathBeHaveMatchers
  39. def aReadablePath : PathMatcher

    Definition Classes
    PathBeHaveMatchers
  40. def aWritablePath : PathMatcher

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

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

    Definition Classes
    FileBeHaveMatchers
  43. def action (a: ⇒ Any): Action

    add a new action to the Fragments

    add a new action to the Fragments

    Definition Classes
    FragmentsBuilder
  44. def addArguments (a: Arguments): Arguments

    Attributes
    protected
    Definition Classes
    FragmentsBuilder
  45. def addExample [T] (ex: ⇒ Example)(implicit arg0: (T) ⇒ Result): Example

    Attributes
    protected
    Definition Classes
    FragmentsBuilder
  46. def addFragments (fs: Fragments): Fragments

    Attributes
    protected
    Definition Classes
    FragmentsBuilder
  47. def addFragments [T] (s: String, fs: ⇒ T, word: String): Fragments

    Attributes
    protected
    Definition Classes
    FragmentsBuilder
  48. implicit def akaMust [T] (tm: Expectable[T]): MustExpectable[T]

    Attributes
    implicit
    Definition Classes
    MustThrownExpectations → MustExpectations
  49. implicit def akaShould [T] (tm: Expectable[T]): ShouldExpectable[T]

    Attributes
    implicit
    Definition Classes
    ShouldThrownExpectations → ShouldExpectations
  50. def anAbsolutePath : PathMatcher

    Definition Classes
    PathBeHaveMatchers
  51. def anError : Error

    Definition Classes
    StandardResults
  52. def anExistingPath : PathMatcher

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

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

    Attributes
    implicit
    Definition Classes
    AnyBeHaveMatchers
  55. implicit def anyToArgProperty [T] (t: ⇒ T): ArgProperty[T]

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

    Attributes
    implicit
    Definition Classes
    AnyBeHaveMatchers
  57. 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
  58. 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
  59. 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
  60. def args (ex: ArgProperty[String] = ArgProperty[String](), include: ArgProperty[String] = ArgProperty[String](), exclude: ArgProperty[String] = ArgProperty[String](), wasIssue: ArgProperty[Boolean] = ArgProperty[Boolean](), was: ArgProperty[String] = ArgProperty[String](), plan: ArgProperty[Boolean] = ArgProperty[Boolean](), skipAll: ArgProperty[Boolean] = ArgProperty[Boolean](), stopOnFail: ArgProperty[Boolean] = ArgProperty[Boolean](), sequential: ArgProperty[Boolean] = ArgProperty[Boolean](), xonly: ArgProperty[Boolean] = ArgProperty[Boolean](), showOnly: ArgProperty[String] = ArgProperty[String](), color: ArgProperty[Boolean] = ArgProperty[Boolean](), noindent: ArgProperty[Boolean] = ArgProperty[Boolean](), markdown: ArgProperty[Boolean] = ArgProperty[Boolean]()): Arguments

    shorthand method to create an Arguments object

    shorthand method to create an Arguments object

    Definition Classes
    ArgumentsArgs → ArgumentsArgs
  61. lazy val args : ArgumentsNamespaceMutable

    Definition Classes
    ArgumentsArgs → ArgumentsArgs
  62. implicit def argumentsFragment (a: Arguments): FragmentsFragment

    Arguments creation

    Arguments creation

    returns

    a Fragments object which can be chained with other fragments

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  63. def asAbsolutePath (name: String): PathMatcher

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

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

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

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

    Definition Classes
    AnyBeHaveMatchers
  68. 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
  69. def assignableFrom [T] (implicit arg0: ClassManifest[T]): Matcher[Class[_]]

    Definition Classes
    AnyBeHaveMatchers
  70. def be : NeutralMatcher[Any]

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

    alias for beTheSameAs

    alias for beTheSameAs

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

    matches if file.

    matches if file.isDirectory

    Definition Classes
    FileBaseMatchers
  73. def beADirectoryPath : PathMatcher

    matches if new File(path).

    matches if new File(path).isDirectory

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

    matches if file.

    matches if file.isFile

    Definition Classes
    FileBaseMatchers
  75. def beAFilePath : PathMatcher

    matches if new File(path).

    matches if new File(path).isFile

    Definition Classes
    PathBaseMatchers
  76. def beAHiddenPath : PathMatcher

    matches if new File(path).

    matches if new File(path).isHidden

    Definition Classes
    PathBaseMatchers
  77. def beAReadablePath : PathMatcher

    matches if new File(path).

    matches if new File(path).canRead

    Definition Classes
    PathBaseMatchers
  78. def beAWritablePath : PathMatcher

    matches if new File(path).

    matches if new File(path).canWrite

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

    matches if file.

    matches if file.isAbsolute

    Definition Classes
    FileBaseMatchers
  80. def beAnAbsolutePath : PathMatcher

    matches if new File(path).

    matches if new File(path).isAbsolute

    Definition Classes
    PathBaseMatchers
  81. def beAnExistingPath : PathMatcher

    matches if new File(path).

    matches if new File(path).exists

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

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

    Definition Classes
    OptionBaseMatchers
  84. 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
  85. def beAssignableFrom [T] (implicit arg0: ClassManifest[T]): Matcher[Class[_]]

    matches if v.

    matches if v.isAssignableFrom(c)

    Definition Classes
    AnyBaseMatchers
  86. 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
  87. 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
  88. 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
  89. 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
  90. def beEmpty [T] (implicit arg0: (T) ⇒ Any { def isEmpty: Boolean }): Matcher[T]

    matches if a.

    matches if a.isEmpty

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

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  92. 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
  93. 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
  94. def beFalse : Matcher[Boolean]

    matches if a == false

    matches if a == false

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

    matches if x > n

    matches if x > n

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

    matches if x >= n

    matches if x >= n

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

    matches if file.

    matches if file.isHidden

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

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

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

    matches if x < n

    matches if x < n

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

    matches if x <= n

    matches if x <= n

    Definition Classes
    NumericBaseMatchers
  102. 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
  103. def beLikeA [T] (pattern: ⇒ PartialFunction[T, org.specs2.matcher.MatchResult[_]]): Matcher[T]

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

    matches if b matches the regular expression a

    matches if b matches the regular expression a

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

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

    matches if the value is null

    matches if the value is null

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

    matches if t.

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

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

    matches if file.

    matches if file.canRead

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

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

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

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

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

    matches if a eq b

    matches if a eq b

    Definition Classes
    AnyBaseMatchers
  114. def beTrue : BeTrueMatcher

    matches if a == true

    matches if a == true

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

    matches if a == b

    matches if a == b

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

    matches if file.

    matches if file.canWrite

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

    matches if a != b

    matches if a != b

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

    matches if a.

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

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

    matches if a != b

    matches if a != b

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

    alias for beLessThan

    alias for beLessThan

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

    alias for beLessThanOrEqualTo

    alias for beLessThanOrEqualTo

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

    matches if a == b

    matches if a == b

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

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

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

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

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

    matches if a.

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

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

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  127. 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
  128. def be_> [S] (n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    alias for beGreaterThan

    alias for beGreaterThan

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

    alias for beGreaterThanOrEqualTo

    alias for beGreaterThanOrEqualTo

    Definition Classes
    NumericBaseMatchers
  130. implicit def booleanExample (expression: ⇒ Boolean): Example

    Attributes
    implicit
    Definition Classes
    AutoExamples
  131. implicit def booleanFragments (expression: ⇒ Boolean): Fragments

    this implicit def is necessary when the expression is at the start of the spec

    this implicit def is necessary when the expression is at the start of the spec

    Attributes
    implicit
    Definition Classes
    AutoExamples
  132. implicit def booleanFragmentsFragment (expression: ⇒ Boolean): BooleanResultFragment

    this implicit def is necessary when the expression is at the start of the spec

    this implicit def is necessary when the expression is at the start of the spec

    Attributes
    implicit
    Definition Classes
    AutoExamples
  133. def br : Br

    Definition Classes
    FormattingFragments
  134. def bt (n: Int): Backtab

    Definition Classes
    FormattingFragments
  135. def bt : Backtab

    Definition Classes
    FormattingFragments
  136. 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
  137. def canRead (path: String): Boolean

    returns

    true if the file can be read

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

    returns

    true if the file can be written

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

    Definition Classes
    FileBeHaveMatchers
  140. def checkFailure [T] (m: MatchResult[T]): MatchResult[T]

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

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

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

    Definition Classes
    NumericBaseMatchers
  144. def colors (c: Colors): Arguments

    shortcut to set new Colors

    shortcut to set new Colors

    Definition Classes
    ArgumentsShortcuts
  145. def contain (t: Char): Matcher[String]

    matches if (b contains a)

    matches if (b contains a)

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

    matches if (b contains a)

    matches if (b contains a)

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

    match if traversable contains (t1, t2)

    match if traversable contains (t1, t2)

    Definition Classes
    TraversableBaseMatchers
  148. 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

  149. def containAnyOf [T] (t: LazyParameter[T]*): ContainAnyOfMatcher[T]

    match if traversable contains one of (t1, t2)

    match if traversable contains one of (t1, t2)

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

    match if traversable contains (x matches .

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

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

    match if traversable contains (x matches p)

    match if traversable contains (x matches p)

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

    Definition Classes
    StringBeHaveMatchers
  153. implicit def contextToResult [T] (t: MatchResult[T])(implicit context: Context = defaultContext): Result

    transform a context to a result to allow the implicit passing of a context to each example

    transform a context to a result to allow the implicit passing of a context to each example

    Attributes
    implicit
    Definition Classes
    SpecificationFeatures
  154. 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
  155. 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
  156. 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
  157. 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
  158. 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
  159. def createDir (path: String): Boolean

    creates a directory for a given path

    creates a directory for a given path

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description

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

    returns

    an Expectable

    Definition Classes
    Expectations
  164. 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
  165. def createMustExpectable [T] (t: ⇒ T): MustExpectable[T]

    Attributes
    protected
    Definition Classes
    MustThrownExpectations → MustExpectations
  166. def createShouldExpectable [T] (t: ⇒ T): ShouldExpectable[T]

    Attributes
    protected
    Definition Classes
    ShouldThrownExpectations → ShouldExpectations
  167. implicit def debug [T] (t: ⇒ T): Debuggable[T]

    Attributes
    implicit
    Definition Classes
    Debug
  168. val defaultContext : Context

    Attributes
    protected[specs2]
    Definition Classes
    Contexts
  169. def definedAt [K] (values: K*): Matcher[PartialFunction[K, Any]]

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

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

    delete a file

    delete a file

    Definition Classes
    FileWriter
  172. def descFromExpectations : Arguments

    shortcut to display the example descriptions from the expectations ok messages

    shortcut to display the example descriptions from the expectations ok messages

    Definition Classes
    ArgumentsShortcuts
  173. 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
  174. implicit def described (s: String): Described

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  175. def diffs (show: Boolean = true, separators: String = "[]", triggerSize: Int = 20, diffRatio: Int = 30, shortenSize: Int = 5, full: Boolean = false): Arguments

    shortcut to display the differences with some specific parameters

    shortcut to display the differences with some specific parameters

    Definition Classes
    ArgumentsShortcuts
  176. implicit def doAfter [T] (t: ⇒ T)(implicit arg0: (T) ⇒ Result): AfterResult[T]

    add an after action to any kind of result

    add an after action to any kind of result

    Attributes
    implicit
    Definition Classes
    Contexts
  177. implicit def doAround [T] (t: ⇒ T)(implicit arg0: (T) ⇒ Result): AroundResult[T]

    add an Around function to any kind of result

    add an Around function to any kind of result

    Attributes
    implicit
    Definition Classes
    Contexts
  178. implicit def doBefore [T] (t: ⇒ T)(implicit arg0: (T) ⇒ Result): BeforeResult[T]

    add a before action to any kind of result

    add a before action to any kind of result

    Attributes
    implicit
    Definition Classes
    Contexts
  179. def done : Success

    Definition Classes
    StandardResults
  180. implicit def downcastGiven [X, Y <: X] (gv: Given[Y]): Given[X] { def extract(s: String): Y }

    implicit conversion to transform a Given[Y] to Given[X] when Y <: X

    implicit conversion to transform a Given[Y] to Given[X] when Y <: X

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

    Definition Classes
    AnyBeHaveMatchers
  182. def end : End

    Definition Classes
    FormattingFragments
  183. def endWith (t: ⇒ String): Matcher[String]

    matches if b.

    matches if b.endsWith(a)

    Definition Classes
    StringBaseMatchers
  184. def endbr : Fragments

    Definition Classes
    FormattingFragments
  185. def endingWith (s: String): Matcher[String]

    Definition Classes
    StringBeHaveMatchers
  186. def endp : Fragments

    Definition Classes
    FormattingFragments
  187. def eq (arg0: AnyRef): Boolean

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

    matches if a == b

    matches if a == b

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

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

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

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

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

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

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

    returns

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

    Definition Classes
    EventuallyMatchers
  194. 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
  195. def exclude (tags: String): Arguments

    shortcut to exclude some tagged fragments

    shortcut to exclude some tagged fragments

    Definition Classes
    ArgumentsShortcuts
  196. def excludeAlsoTrace (patterns: String*): IncludeExcludeStackTraceFilter

    shortcut to add exclude trace patterns

    shortcut to add exclude trace patterns

    Definition Classes
    ArgumentsShortcuts
  197. def excludeTrace (patterns: String*): IncludeExcludeStackTraceFilter

    shortcut to create a stackTrace filter to exclude only some elements

    shortcut to create a stackTrace filter to exclude only some elements

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

    matches if file.

    matches if file.exists

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

    returns

    true if the file exists

    Definition Classes
    FileWriter
  200. def failure : Failure

    Definition Classes
    StandardResults
  201. def failure (f: Failure): Nothing

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

    Attributes
    protected
    Definition Classes
    ThrownExpectations
  203. 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
  204. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  205. 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
  206. implicit def forExample (s: String): ExampleDesc

    Example creation

    Example creation

    returns

    an Example description from a string, to create a full Example once the body is defined

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  207. implicit def fragmentFragments (f: ⇒ Fragment): FragmentsFragment

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  208. implicit def fragments (f: ⇒ Fragment): Fragments

    returns

    a Fragments object from a single Fragment

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  209. implicit def fragmentsFragmentToFragments (fs: FragmentsFragment): Fragments

    reverse conversion from a Fragment containing a Fragments object to the Fragments object

    reverse conversion from a Fragment containing a Fragments object to the Fragments object

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  210. implicit def fragmentsFragments (fs: ⇒ Fragments): FragmentsFragment

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  211. def freetext : Arguments

    shortcut to not executing the text and avoid automatic indentation

    shortcut to not executing the text and avoid automatic indentation

    Definition Classes
    ArgumentsShortcuts
  212. 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
  213. def fullStackTrace : Arguments

    shortcut to filter nothing

    shortcut to filter nothing

    Definition Classes
    ArgumentsShortcuts
  214. 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
  215. 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
  216. 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
  217. 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
  218. def getAbsolutePath (path: String): String

    returns

    the file absolute path

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

    returns

    the file canonical path

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

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

    returns

    the file name

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

    returns

    the file parent path

    Definition Classes
    FileSystem
  223. 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
  224. def globToPattern (glob: String): String

    returns

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

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

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

    Definition Classes
    NumericBaseMatchers
  227. def hashCode (): Int

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

    Definition Classes
    BeHaveMatchers
  229. 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
  230. def haveAbsolutePath [T <: AnyRef { def getPath(): String }] (path: String): Matcher[T]

    matches if file.

    matches if file.getAbsolutePath == path

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

    matches if new File(path).

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

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

    matches if new File(path).

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

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

    matches if file.

    matches if file.getCanonicalPath == path

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

    matches if v.

    matches if v.getClass == c

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

    matches if x.

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

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

    matches if map.

    matches if map.contains(k)

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

    alias for haveSize

    alias for haveSize

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

    matches if file.

    matches if file.list == list

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

    matches if file.

    matches if file.getName == name

    Definition Classes
    FileBaseMatchers
  240. 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
  241. 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
  242. def haveParent [T <: AnyRef { def getPath(): String }] (path: String): Matcher[T]

    matches if file.

    matches if file.getParent == path

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

    matches if new File(path).

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

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

    matches if new File(path).

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

    Definition Classes
    PathBaseMatchers
  245. 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
  246. def haveSuperclass [T] (implicit arg0: ClassManifest[T]): Matcher[Any]

    matches if c.

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

    Definition Classes
    AnyBaseMatchers
  247. 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
  248. 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
  249. def hidden [T <: AnyRef { def getPath(): String }] : Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  250. implicit def inExample (s: String): InExample

    add a new example using 'in' or '>>' or '!'

    add a new example using 'in' or '>>' or '!'

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  251. implicit def inScope (s: Scope): Success

    transform a scope to a success to be able to create traits containing any variables and usable in any Examples

    transform a scope to a success to be able to create traits containing any variables and usable in any Examples

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  252. def include (tags: String): Arguments

    shortcut to include only some tagged fragments

    shortcut to include only some tagged fragments

    Definition Classes
    ArgumentsShortcuts
  253. def include (f: Fragments): FragmentsFragment

  254. def include (args: Arguments, s: SpecificationStructure*): FragmentsFragment

    Definition Classes
    SpecificationInclusion
  255. def include (s: SpecificationStructure, ss: SpecificationStructure*): FragmentsFragment

    Definition Classes
    SpecificationInclusion
  256. implicit def include (s: SpecificationStructure): FragmentsFragment

    Attributes
    implicit
    Definition Classes
    SpecificationInclusion
  257. def includeAlsoTrace (patterns: String*): IncludeExcludeStackTraceFilter

    shortcut to add include trace patterns

    shortcut to add include trace patterns

    Definition Classes
    ArgumentsShortcuts
  258. def includeTrace (patterns: String*): IncludeExcludeStackTraceFilter

    shortcut to create a stackTrace filter to include only some elements

    shortcut to create a stackTrace filter to include only some elements

    Definition Classes
    ArgumentsShortcuts
  259. def inputStream (filePath: String): InputStream

    returns

    a FileInputStream for a given file path

    Definition Classes
    FileReader
  260. implicit def intToRichLong (v: Int): RichLong

    Attributes
    implicit
    Definition Classes
    TimeConversions
  261. def interface [T] (implicit arg0: ClassManifest[T]): Matcher[Any]

    Definition Classes
    AnyBeHaveMatchers
  262. def is : Fragments

    declaration of Fragments from the user

    declaration of Fragments from the user

    Definition Classes
    Specification → SpecificationStructure
  263. def isAbsolute (path: String): Boolean

    returns

    true if the file is absolute

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

    returns

    true if the File represented by this path is a directory

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

    returns

    true if the file is a directory

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

    returns

    true if the file is a file

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

    returns

    true if the file is hidden

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

    Attributes
    final
    Definition Classes
    Any
  269. 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
  270. def key [K] (k: K): Matcher[Iterable[(K, Any)]]

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

    Definition Classes
    AnyBeHaveMatchers
  272. def ko (m: String): MatchFailure[None.type]

    Definition Classes
    StandardMatchResults
  273. lazy val ko : MatchFailure[None.type]

    Definition Classes
    StandardMatchResults
  274. 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
  275. def left [T] : LeftMatcher[Nothing]

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

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

    alias for haveSize

    alias for haveSize

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

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

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

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

    Definition Classes
    AnyBeHaveMatchers
  282. def link (s: SpecificationStructure): Fragments

    create a link directly on a specification, with a given link

    create a link directly on a specification, with a given link

    Definition Classes
    FragmentsBuilder → FragmentsBuilder
  283. def link (f: Fragments): Fragments

    add a new link to the Fragments

    add a new link to the Fragments

    Definition Classes
    FragmentsBuilder
  284. def link (htmlLink: HtmlLink, s: SpecificationStructure): Fragments

    create a link directly on a specification, with a given link

    create a link directly on a specification, with a given link

    Definition Classes
    FragmentsBuilder
  285. def listFiles (path: String): List[String]

    returns

    the files of that directory

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

    matches if new File(path).

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

    Definition Classes
    PathBaseMatchers
  287. def literate : Arguments

    returns

    arguments for a literate specification: no auto indent and a sequential execution

    Definition Classes
    ArgumentsShortcuts
  288. 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
  289. def loadXmlFile (filePath: String): NodeSeq

    returns

    the xml content of a file, using the XML parser

    Definition Classes
    FileReader
  290. implicit def longToRichLong (v: Long): RichLong

    Attributes
    implicit
    Definition Classes
    TimeConversions
  291. def map (fs: ⇒ Fragments): Fragments

    this method can be overriden to map additional behavior in the user-defined fragments

    this method can be overriden to map additional behavior in the user-defined fragments

    Definition Classes
    SpecificationStructure
  292. implicit def matchExample (expression: ⇒ org.specs2.matcher.MatchResult[_]): Example

    Attributes
    implicit
    Definition Classes
    AutoExamples
  293. implicit def matchFragments (expression: ⇒ org.specs2.matcher.MatchResult[_]): Fragments

    this implicit def is necessary when the expression is at the start of the spec The startDepth and offsets are special tweakings to make sure we get the right line in that specific case

    this implicit def is necessary when the expression is at the start of the spec The startDepth and offsets are special tweakings to make sure we get the right line in that specific case

    Attributes
    implicit
    Definition Classes
    AutoExamples
  294. implicit def matchFragmentsFragment (expression: ⇒ org.specs2.matcher.MatchResult[_]): MatchResultFragment

    this implicit def is necessary when the expression is at the start of the spec

    this implicit def is necessary when the expression is at the start of the spec

    Attributes
    implicit
    Definition Classes
    AutoExamples
  295. 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
  296. implicit def matcherFunction2 [T] (f: (T) ⇒ Matcher[T]): MatcherFunction2[T]

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

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

    creates a new directory

    creates a new directory

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  301. def nocolor : Arguments

    shortcut to avoid colored output

    shortcut to avoid colored output

    Definition Classes
    ArgumentsShortcuts
  302. def noindent : Arguments

    shortcut to avoid automatic indentation

    shortcut to avoid automatic indentation

    Definition Classes
    ArgumentsShortcuts
  303. def none : Matcher[Option[Any]]

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

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

    negate a matcher

    negate a matcher

    Definition Classes
    AnyBaseMatchers
  306. def notify (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  308. def ok (m: String): MatchSuccess[None.type]

    Definition Classes
    StandardMatchResults
  309. lazy val ok : MatchSuccess[None.type]

    Definition Classes
    StandardMatchResults
  310. def oneOf [T] (t: T*): Matcher[T]

    Definition Classes
    AnyBeHaveMatchers
  311. def only (examples: String): Arguments

    shortcut to execute and print only some examples

    shortcut to execute and print only some examples

    Definition Classes
    ArgumentsShortcuts
  312. implicit def outsideFunctionToResult [T, S] (implicit o: Outside[T]): ((T) ⇒ MatchResult[S]) ⇒ Result

    use an available outside context to transform a function returning a MatchResult into a result

    use an available outside context to transform a function returning a MatchResult into a result

    Attributes
    implicit
    Definition Classes
    SpecificationFeatures
  313. def p : Fragments

    Definition Classes
    FormattingFragments
  314. def pair [K, V] (p: (K, V)): Matcher[Iterable[(K, V)]]

    Definition Classes
    MapBeHaveMatchers
  315. 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
  316. def pairs [K, V] (pairs: (K, V)*): Matcher[Iterable[(K, V)]]

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

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

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

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

    Definition Classes
    FileBeHaveMatchers
  321. def pending : Pending

    Definition Classes
    StandardResults
  322. def plan : Arguments

    shortcut to show only the text without any execution

    shortcut to show only the text without any execution

    Definition Classes
    ArgumentsShortcuts
  323. 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
  324. def readLines (path: String): IndexedSeq[String]

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

    Definition Classes
    FileBeHaveMatchers
  326. 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
  327. implicit def resultExample (expression: ⇒ Result): Example

    Attributes
    implicit
    Definition Classes
    AutoExamples
  328. implicit def resultFragments (expression: ⇒ Result): Fragments

    this implicit def is necessary when the expression is at the start of the spec

    this implicit def is necessary when the expression is at the start of the spec

    Attributes
    implicit
    Definition Classes
    AutoExamples
  329. implicit def resultFragmentsFragment (expression: ⇒ Result): ResultFragment

    this implicit def is necessary when the expression is at the start of the spec

    this implicit def is necessary when the expression is at the start of the spec

    Attributes
    implicit
    Definition Classes
    AutoExamples
  330. def right [T] : RightMatcher[Nothing]

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

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

    any scala array has a size

    any scala array has a size

    Attributes
    implicit
    Definition Classes
    TraversableBaseMatchers
  333. 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
  334. def see (s: SpecificationStructure): Fragments

    create a html link without including the other specification fragments

    create a html link without including the other specification fragments

    Definition Classes
    FragmentsBuilder → FragmentsBuilder
  335. def see (htmlLink: HtmlLink, s: SpecificationStructure): Fragments

    create a html link without including the other specification fragments, and passing a specific link

    create a html link without including the other specification fragments, and passing a specific link

    Definition Classes
    FragmentsBuilder
  336. 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
  337. def sequential : Arguments

    returns

    arguments for a specification where examples must be executed sequentially

    Definition Classes
    ArgumentsShortcuts
  338. def showOnly (s: String): Arguments

    shortcut to print only some statuses

    shortcut to print only some statuses

    Definition Classes
    ArgumentsShortcuts
  339. def size [T] (n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    alias for haveSize

    alias for haveSize

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

    Attributes
    implicit
    Definition Classes
    TraversableBeHaveMatchers
  341. def skipAll : Arguments

    shortcut to skip all examples

    shortcut to skip all examples

    Definition Classes
    ArgumentsShortcuts
  342. def skipped : Skipped

    Definition Classes
    StandardResults
  343. def skipped (s: Skipped): Nothing

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

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

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

    Definition Classes
    OptionBaseMatchers
  347. var specFragments : Fragments

    local mutable contents of the specification

    local mutable contents of the specification

    Attributes
    protected[specs2]
    Definition Classes
    FragmentsBuilder
  348. def startWith (t: ⇒ String): Matcher[String]

    matches if b.

    matches if b.startsWith(a)

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

    Definition Classes
    StringBeHaveMatchers
  350. def step (a: ⇒ Any): Step

    add a new step to the Fragments

    add a new step to the Fragments

    Definition Classes
    FragmentsBuilder
  351. def stopOnFail : Arguments

    shortcut to stop after the first failure or error

    shortcut to stop after the first failure or error

    Definition Classes
    ArgumentsShortcuts
  352. 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
  353. 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
  354. implicit def stringToHtmlLinkFragments (s: String): HtmlLinkFragments

    Links to other specifications creation

    Links to other specifications creation

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
    See also

    org.specs2.UserGuide

  355. implicit def stringToHtmlLinkFragments2 (s: String): HtmlLinkFragments2

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  356. def success : Success

    Definition Classes
    StandardResults
  357. def superClass [T] (implicit arg0: ClassManifest[T]): Matcher[Any]

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

    Attributes
    final
    Definition Classes
    AnyRef
  359. def t (n: Int): Tab

    Definition Classes
    FormattingFragments
  360. def t : Tab

    Definition Classes
    FormattingFragments
  361. implicit def textFragment (s: String): FragmentsFragment

    returns

    a Fragments object from a single piece of text

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder → FragmentsBuilder
  362. implicit def textStart (s: String): Fragments

    returns

    a Fragments object from a string

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  363. implicit def theBlock (t: ⇒ Nothing): MustExpectable[Nothing]

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

    Attributes
    implicit
    Definition Classes
    MustExpectations
  365. implicit def thisBlock (t: ⇒ Nothing): ShouldExpectable[Nothing]

    Attributes
    implicit
    Definition Classes
    ShouldExpectations
  366. implicit def thisValue [T] (t: ⇒ T): ShouldExpectable[T]

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

    returns

    a matcher checking the value of an Exception

    Definition Classes
    ExceptionBaseMatchers
  368. 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
  369. def throwA [E <: Throwable] (implicit m: ClassManifest[E]): ExceptionClassMatcher

    returns

    a matcher checking the type of an Exception

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

    alias for throwA

    alias for throwA

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

    alias for throwA

    alias for throwA

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

    alias for throwA

    alias for throwA

    Definition Classes
    ExceptionBaseMatchers
  373. implicit def title (s: String): MutableSpecTitle

    This method allows to add a title to the Specification.

    This method allows to add a title to the Specification. It can be used as an operation on a String: "spec title".title

    returns

    a Fragments object from a string, with the given title

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder → FragmentsBuilder
  374. implicit def toAnyMatcherResult (result: MatchResult[Any]): AnyMatcherResult

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

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

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

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

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

    Attributes
    implicit
    Definition Classes
    ExceptionBeHaveMatchers
  380. 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
  381. implicit def toMapKeyResultMatcher [K] (result: MatchResult[Iterable[(K, Any)]]): MapKeyResultMatcher[K]

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

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

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

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

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

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

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

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

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

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

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

    Attributes
    implicit
    Definition Classes
    OptionBeHaveMatchers
  393. 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
  394. implicit def toPartialFunctionResultMatcher [K, V] (result: MatchResult[PartialFunction[K, V]]): PartialFunctionResultMatcher[K, V]

    Attributes
    implicit
    Definition Classes
    MapBeHaveMatchers
  395. 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
  396. implicit def toPendingUntilFixed [T] (t: ⇒ T)(implicit arg0: (T) ⇒ Result): PendingUntilFixed[T]

    Attributes
    implicit
    Definition Classes
    PendingUntilFixed
  397. 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
  398. def toString (): String

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

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

    Attributes
    implicit
    Definition Classes
    XmlBeHaveMatchers
  401. def todo : Pending

    Definition Classes
    StandardResults
  402. implicit def traversable [T] (s: MatchResult[GenTraversable[T]]): TraversableBeHaveMatchers[T]

    Attributes
    implicit
    Definition Classes
    TraversableBeHaveMatchers
  403. 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
  404. def typedEqualTo [T] (t: ⇒ T): BeTypedEqualTo[T]

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  405. 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
  406. 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
  407. implicit def upcastThen [X, Y <: X] (th: Then[X]): Then[Y]

    implicit conversion to transform a Then[Y] to Then[X] when Y <: X

    implicit conversion to transform a Then[Y] to Then[X] when Y <: X

    Attributes
    implicit
    Definition Classes
    RegexSteps
  408. implicit def updowncastWhen [P, Q, R <: P, S >: Q] (wh: When[P, Q]): When[R, S]

    implicit conversion to transform a When[P, Q] to When[R, S] when R <: P and S >: Q

    implicit conversion to transform a When[P, Q] to When[R, S] when R <: P and S >: Q

    Attributes
    implicit
    Definition Classes
    RegexSteps
  409. def value [V] (v: V): Matcher[Iterable[(Any, V)]]

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  414. def was (s: String): Arguments

    shortcut to include only examples with some previous statuses

    shortcut to include only examples with some previous statuses

    Definition Classes
    ArgumentsShortcuts
  415. def wasIssue : Arguments

    shortcut to include only previousy failed/errors examples

    shortcut to include only previousy failed/errors examples

    Definition Classes
    ArgumentsShortcuts
  416. def wontdo : Success

    Definition Classes
    StandardResults
  417. def writable [T <: AnyRef { def getPath(): String }] : Matcher[AnyRef { def getPath(): String }]

    Definition Classes
    FileBeHaveMatchers
  418. 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
  419. 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
  420. 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
  421. def xonly : Arguments

    shortcut to print only failures and errors

    shortcut to print only failures and errors

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

    alias for beCloseTo

    alias for beCloseTo

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

    alias for beCloseTo

    alias for beCloseTo

    Definition Classes
    NumericBaseMatchers

Inherited from SpecificationFeatures

Inherited from Debug

Inherited from Contexts

Inherited from PendingUntilFixed

Inherited from TimeConversions

Inherited from AutoExamples

Inherited from StandardMatchResults

Inherited from StandardResults

Inherited from FormattingFragments

Inherited from ShouldThrownMatchers

Inherited from ShouldThrownExpectations

Inherited from ShouldExpectations

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 ArgumentsShortcuts

Inherited from ArgumentsArgs

Inherited from ArgumentsArgs

Inherited from ArgProperties

Inherited from SpecificationInclusion

Inherited from SpecificationInclusion

Inherited from FragmentsBuilder

Inherited from FragmentsBuilder

Inherited from RegexSteps

Inherited from SpecificationStructure

Inherited from AnyRef

Inherited from Any