org.specs2.mutable

SpecificationWithJUnit

abstract class SpecificationWithJUnit extends Specification

This class must be inherited to allow a Specification to be executed as a JUnit test

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

Instance Constructors

  1. new SpecificationWithJUnit()

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 CanBeEqualExpectation[T] extends AnyRef

  10. class ClassMatcherResult extends AnyRef

  11. class Described extends AnyRef

  12. class Descriptible[T] extends AnyRef

  13. class FragmentAndFormattingFragment[T <: Fragment] extends AnyRef

  14. class FragmentsAndFormattingFragment extends AnyRef

  15. class FragmentsFragmentAndFormattingFragment extends AnyRef

  16. class GWTToFragment extends AnyRef

  17. class InExample extends AnyRef

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

  18. class MatchResultFunctionVerification[U, T] extends AnyRef

  19. class MatcherFunction[S, T] extends AnyRef

  20. class MatcherFunction2[T] extends AnyRef

  21. class MutableSpecText extends AnyRef

  22. class MutableSpecTitle extends SpecTitle

  23. class PendingUntilFixed[T] extends AnyRef

  24. class RichLong extends AnyRef

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

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

  27. class TextAndFormattingFragment extends AnyRef

  28. class WarningForgottenOperator extends AnyRef

Value Members

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

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

    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. final def ##(): Int

    Definition Classes
    AnyRef → Any
  6. implicit def ***If you see this message this means that you've forgotten an operator after the description string: you should write "example" >> result ***(s: String): WarningForgottenOperator

    adding a conflicting implicit to warn the user when a >> was forgotten

    adding a conflicting implicit to warn the user when a >> was forgotten

    Definition Classes
    FragmentsBuilder
  7. 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
  8. 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
  9. 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
  10. 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
  11. def <[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

    alias for beLessThan

    alias for beLessThan

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

    alias for beLessThanOrEqualTo

    alias for beLessThanOrEqualTo

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

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

    Definition Classes
    Any
  15. def ==/(node: Elem): EqualIgnoringSpaceMatcher

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

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

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

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

    matches if a.

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

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

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  19. 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
  20. def =~(r: Regex): BeMatchingRegex

    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
  21. def =~(p: Pattern): BeMatchingPattern

    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
  22. 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
  23. def >[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    alias for beGreaterThan

    alias for beGreaterThan

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

    alias for beGreaterThanOrEqualTo

    alias for beGreaterThanOrEqualTo

    Definition Classes
    NumericBaseMatchers
  25. def >>(fs: Fragments): Fragments

    Attributes
    protected
    Definition Classes
    FragmentsBuilder
  26. 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

    Definition Classes
    RegexSteps
  27. 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

    Definition Classes
    NumericBaseMatchers
  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 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
  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 the first node of the tested node

    match if node is the first node of the tested node

    Definition Classes
    XmlBaseMatchers
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. implicit def aBooleanExample(expression: ⇒ Boolean): ToBooleanExample

    Definition Classes
    AutoExamplesLowImplicits
  39. implicit def aDataTableExample[T](expression: ⇒ DecoratedResult[T]): ToDataTableExample[T]

    this syntax allows to declare auto examples with { .

    this syntax allows to declare auto examples with { ... }.eg in mutable specifications

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

    Definition Classes
    FileBeHaveMatchers
  41. def aDirectoryPath: PathMatcher

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

    Definition Classes
    FileBeHaveMatchers
  43. def aFilePath: PathMatcher

    Definition Classes
    PathBeHaveMatchers
  44. def aHiddenPath: PathMatcher

    Definition Classes
    PathBeHaveMatchers
  45. implicit def aMatchResultExample(expression: ⇒ org.specs2.matcher.MatchResult[_]): ToMatchResultExample

    Definition Classes
    AutoExamplesLowImplicits
  46. def aReadablePath: PathMatcher

    Definition Classes
    PathBeHaveMatchers
  47. implicit def aResultExample(expression: ⇒ Result): ToResultExample

    Definition Classes
    AutoExamplesLowImplicits
  48. def aWritablePath: PathMatcher

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

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

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

    add a new action to the Fragments

    add a new action to the Fragments

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

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

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

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

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

  57. implicit def akaShould[T](tm: Expectable[T]): ShouldExpectable[T]

  58. def anAbsolutePath: PathMatcher

    Definition Classes
    PathBeHaveMatchers
  59. def anError: Error

    Definition Classes
    StandardResults
  60. def anExistingPath: PathMatcher

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

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

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

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

    Definition Classes
    AnyBeHaveMatchers
  65. 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
  66. 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
  67. 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
  68. 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](), stopOnSkip: ArgProperty[Boolean] = ArgProperty[Boolean](), sequential: ArgProperty[Boolean] = ArgProperty[Boolean](), isolated: 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
    ArgumentsArgsArgumentsArgs
  69. lazy val args: ArgumentsNamespaceMutable

    Definition Classes
    ArgumentsArgsArgumentsArgs
  70. implicit def argumentsFragment(a: Arguments): FragmentsFragment

    Arguments creation

    Arguments creation

    returns

    a Fragments object which can be chained with other fragments

    Definition Classes
    FragmentsBuilder
  71. def asAbsolutePath(name: String): PathMatcher

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

    Definition Classes
    PathBeHaveMatchers
  73. final def asInstanceOf[T0]: T0

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

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

    Definition Classes
    AnyBeHaveMatchers
  76. 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

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

    Definition Classes
    AnyBeHaveMatchers
  78. 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
  79. 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
  80. def be: NeutralMatcher[Any]

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

    alias for beTheSameAs

    alias for beTheSameAs

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

    matches if file.

    matches if file.isDirectory

    Definition Classes
    FileBaseMatchers
  83. def beADirectoryPath: PathMatcher

    matches if new File(path).

    matches if new File(path).isDirectory

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

    matches if file.

    matches if file.isFile

    Definition Classes
    FileBaseMatchers
  85. def beAFilePath: PathMatcher

    matches if new File(path).

    matches if new File(path).isFile

    Definition Classes
    PathBaseMatchers
  86. def beAHiddenPath: PathMatcher

    matches if new File(path).

    matches if new File(path).isHidden

    Definition Classes
    PathBaseMatchers
  87. def beAReadablePath: PathMatcher

    matches if new File(path).

    matches if new File(path).canRead

    Definition Classes
    PathBaseMatchers
  88. def beAWritablePath: PathMatcher

    matches if new File(path).

    matches if new File(path).canWrite

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

    matches if file.

    matches if file.isAbsolute

    Definition Classes
    FileBaseMatchers
  90. def beAnAbsolutePath: PathMatcher

    matches if new File(path).

    matches if new File(path).isAbsolute

    Definition Classes
    PathBaseMatchers
  91. def beAnExistingPath: PathMatcher

    matches if new File(path).

    matches if new File(path).exists

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

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

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

    matches if v.

    matches if v.isAssignableFrom(c)

    Definition Classes
    AnyBaseMatchers
  96. 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
  97. 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
  98. 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
  99. 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
  100. def beEmpty[T](implicit arg0: (T) ⇒ Any { def isEmpty: Boolean }): Matcher[T]

    matches if a.

    matches if a.isEmpty

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

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  102. 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
  103. 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
  104. def beFalse: Matcher[Boolean]

    matches if a == false

    matches if a == false

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

    matches if x > n

    matches if x > n

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

    matches if x >= n

    matches if x >= n

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

    matches if file.

    matches if file.isHidden

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

    Definition Classes
    EitherBaseMatchers
  109. def beLeft[T](t: ⇒ T): Matcher[Either[T,_$9] forSome { type _$9 }]

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

    matches if x < n

    matches if x < n

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

    matches if x <= n

    matches if x <= n

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

    Definition Classes
    AnyBeHaveMatchers
  114. def beMatching(a: Regex): BeMatchingRegex

    matches if b matches the regex a

    matches if b matches the regex a

    Definition Classes
    StringBaseMatchers
  115. def beMatching(a: Pattern): BeMatchingPattern

    matches if b matches the pattern a

    matches if b matches the pattern a

    Definition Classes
    StringBaseMatchers
  116. def beMatching(a: ⇒ String): BeMatching

    matches if b matches the regular expression a

    matches if b matches the regular expression a

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

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

    matches if the value is null

    matches if the value is null

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

    matches if t.

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

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

    matches if file.

    matches if file.canRead

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

    Definition Classes
    EitherBaseMatchers
  122. def beRight[T](t: ⇒ T): Matcher[Either[_$1,T] forSome { type _$1 }]

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

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

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

    returns

    a matcher checking if the elements are ordered

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

    matches if a eq b

    matches if a eq b

    Definition Classes
    AnyBaseMatchers
  127. def beTrue: BeTrueMatcher

    matches if a == true

    matches if a == true

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

    matches if a == b

    matches if a == b

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

    matches if file.

    matches if file.canWrite

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

    matches if a != b

    matches if a != b

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

    matches if a.

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

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

    matches if a != b

    matches if a != b

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

    alias for beLessThan

    alias for beLessThan

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

    alias for beLessThanOrEqualTo

    alias for beLessThanOrEqualTo

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

    matches if a == b

    matches if a == b

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

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

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

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

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

    matches if a.

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

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

    matches if a == b

    matches if a == b

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

    alias for beGreaterThan

    alias for beGreaterThan

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

    alias for beGreaterThanOrEqualTo

    alias for beGreaterThanOrEqualTo

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

    Definition Classes
    AutoExamplesLowImplicits
  144. 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

    Definition Classes
    AutoExamplesLowImplicits
  145. 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

    Definition Classes
    AutoExamplesLowImplicits
  146. def br: Br

  147. def bt(n: Int): Backtab

  148. def bt: Backtab

  149. implicit def canBeEqual[T](t: ⇒ T): CanBeEqualExpectation[T]

    A value can be tested against another with the === operator.

    A value can be tested against another with the === operator. It is equivalent to writing a must_== b

    Definition Classes
    CanBeEqual
  150. def canRead(path: String): Boolean

    returns

    true if the file can be read

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

    returns

    true if the file can be written

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

    Definition Classes
    FileBeHaveMatchers
  153. 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
  154. 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
    ThrownExpectationsExpectations
  155. def clone(): AnyRef

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

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

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

    shortcut to set new Colors

    shortcut to set new Colors

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

    matches if (b contains a)

    matches if (b contains a)

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

    matches if (b contains a)

    matches if (b contains a)

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

    match if traversable contains (t1, t2)

    match if traversable contains (t1, t2)

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

  163. 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
  164. 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
  165. def containMatch[T](t: ⇒ String): ContainLikeMatcher[T]

    match if traversable contains (x matches .

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

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

    match if traversable contains (x matches p)

    match if traversable contains (x matches p)

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

    Definition Classes
    StringBeHaveMatchers
  168. 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

    Definition Classes
    SpecificationFeatures
  169. 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
  170. 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
  171. 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
  172. 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
  173. 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
  174. def createDir(path: String): Boolean

    creates a directory for a given path

    creates a directory for a given path

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description

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

    returns

    an Expectable

    Definition Classes
    Expectations
  179. def createExpectableWithShowAs[T](t: ⇒ T, show: ⇒ String): Expectable[T]

    returns

    an Expectable with a function to show the element T

    Definition Classes
    ThrownExpectationsExpectations
  180. 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
  181. def createMustExpectable[T](t: ⇒ T): MustExpectable[T]

    Attributes
    protected
    Definition Classes
    MustThrownExpectationsMustExpectations
  182. def createShouldExpectable[T](t: ⇒ T): ShouldExpectable[T]

    Attributes
    protected
    Definition Classes
    ShouldThrownExpectationsShouldExpectations
  183. implicit def dataTableExample[T](result: ⇒ DecoratedResult[T]): Example

    Definition Classes
    AutoExamples
  184. implicit def dataTableFragments[T](result: ⇒ DecoratedResult[T]): Fragments

    specific implicits for datatables

    specific implicits for datatables

    Definition Classes
    AutoExamples
  185. implicit def debug[T](t: ⇒ T): Debuggable[T]

    Definition Classes
    Debug
  186. val defaultContext: Context

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

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

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

    delete a file

    delete a file

    Definition Classes
    FileWriter
  190. 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
  191. implicit def describe[T](t: ⇒ T): Descriptible[T]

    describe a value with the aka method

    describe a value with the aka method

    Definition Classes
    Expectations
  192. implicit def described(s: String): Described

    Definition Classes
    FragmentsBuilder
  193. 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
  194. 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

    Definition Classes
    Contexts
  195. 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

    Definition Classes
    Contexts
  196. 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

    Definition Classes
    Contexts
  197. def done: Success

    Definition Classes
    StandardResults
  198. 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

    Definition Classes
    RegexSteps
  199. def eg[T](expression: ⇒ DecoratedResult[T]): ToDataTableExample[T]

    explicit call

    explicit call

    Definition Classes
    AutoExamples
  200. def eg(expression: ⇒ Result): Fragment

    explicit call The result type is different from the eg method to create examples in order to avoid an overloading error

    explicit call The result type is different from the eg method to create examples in order to avoid an overloading error

    Definition Classes
    AutoExamplesLowImplicits
  201. def eg(expression: ⇒ Boolean): Fragments

    explicit call.

    explicit call. The result type is different from the eg method to create examples in order to avoid an overloading error

    Definition Classes
    AutoExamplesLowImplicits
  202. def eg(expression: ⇒ org.specs2.matcher.MatchResult[_]): Example

    explicit call

    explicit call

    Definition Classes
    AutoExamplesLowImplicits
  203. def empty[T <: Any { def isEmpty: Boolean }]: Matcher[T]

    Definition Classes
    AnyBeHaveMatchers
  204. def end: End

  205. def endWith(t: ⇒ String): Matcher[String]

    matches if b.

    matches if b.endsWith(a)

    Definition Classes
    StringBaseMatchers
  206. def endbr: Fragments

  207. def endingWith(s: ⇒ String): Matcher[String]

    Definition Classes
    StringBeHaveMatchers
  208. def endp: Fragments

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

    Definition Classes
    AnyRef
  210. def equalTo[T](t: ⇒ T): BeEqualTo

    matches if a == b

    matches if a == b

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

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

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

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

    alias for beEqualToIgnoringSpace

    alias for beEqualToIgnoringSpace

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

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

    returns

    a matcher that will retry the nested matcher 40 times

    Definition Classes
    EventuallyMatchers
  216. 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
  217. implicit def exampleFactory: ExampleFactory

    Definition Classes
    ExamplesFactoryExamplesFactory
  218. def exclude(tags: String): Arguments

    shortcut to exclude some tagged fragments

    shortcut to exclude some tagged fragments

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

    shortcut to add exclude trace patterns

    shortcut to add exclude trace patterns

    Definition Classes
    ArgumentsShortcuts
  220. 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
  221. def exist[T <: AnyRef { def getPath(): String }]: Matcher[T]

    matches if file.

    matches if file.exists

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

    returns

    true if the file exists

    Definition Classes
    FileWriter
  223. def failure: Failure

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

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  228. def find(r: Regex): FindMatcherRegex

    matches if the regexp r is found inside b

    matches if the regexp r is found inside b

    Definition Classes
    StringBaseMatchers
  229. def find(p: Pattern): FindMatcherPattern

    matches if the pattern p is found inside b

    matches if the pattern p is found inside b

    Definition Classes
    StringBaseMatchers
  230. 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
  231. 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

    Definition Classes
    FragmentsBuilder
  232. 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
  233. 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
  234. 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
  235. 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
  236. implicit def fragmentAndFormattingFragment[T <: Fragment](f: ⇒ T): FragmentAndFormattingFragment[T]

    This implicit allows to follow a fragment by a Formatting fragment

    This implicit allows to follow a fragment by a Formatting fragment

    Definition Classes
    FormattingFragments
  237. implicit def fragmentFragments(f: ⇒ Fragment): FragmentsFragment

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

    returns

    a Fragments object from a single Fragment

    Definition Classes
    FragmentsBuilder
  239. implicit def fragmentsAndFormattingFragment(f: ⇒ Fragments): FragmentsAndFormattingFragment

    This implicit allows to follow a Fragments object by a Formatting fragment

    This implicit allows to follow a Fragments object by a Formatting fragment

    Definition Classes
    FormattingFragments
  240. implicit def fragmentsFragmentAndFormattingFragment(f: ⇒ FragmentsFragment): FragmentsFragmentAndFormattingFragment

    This implicit allows to follow a FragmentsFragment object by a Formatting fragment

    This implicit allows to follow a FragmentsFragment object by a Formatting fragment

    Definition Classes
    FormattingFragments
  241. 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

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

    Definition Classes
    FragmentsBuilder
  243. 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
  244. 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

    Definition Classes
    MatchersImplicits
  245. def fullStackTrace: Arguments

    shortcut to filter nothing

    shortcut to filter nothing

    Definition Classes
    ArgumentsShortcuts
  246. 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

    Definition Classes
    MatchersImplicits
  247. 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

    Definition Classes
    MatchersImplicits
  248. 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

    Definition Classes
    MatchersImplicits
  249. 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

    Definition Classes
    MatchersImplicits
  250. def getAbsolutePath(path: String): String

    returns

    the file absolute path

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

    returns

    the file canonical path

    Definition Classes
    FileSystem
  252. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  253. def getDescription(depth: Int = 12, startOffset: Int = 1, endOffset: Int = 1): String

    get the description from the source file

    get the description from the source file

    Attributes
    protected
    Definition Classes
    AutoExamples → AutoExamplesLowImplicits
  254. def getName(path: String): String

    returns

    the file name

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

    returns

    the file parent path

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

    returns

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

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

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

    Definition Classes
    NumericBaseMatchers
  260. implicit def gwtToFragment(s: String): GWTToFragment

    Create GWT fragments with the << syntax for a mutable specification

    Create GWT fragments with the << syntax for a mutable specification

    Definition Classes
    FragmentsBuilder
  261. def hashCode(): Int

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

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

    matches if file.

    matches if file.getAbsolutePath == path

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

    matches if new File(path).

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

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

    matches if new File(path).

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

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

    matches if file.

    matches if file.getCanonicalPath == path

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

    matches if v.

    matches if v.getClass == c

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

    matches if x.

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

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

    matches if map.

    matches if map.contains(k)

    Definition Classes
    MapBaseMatchers
  271. def haveKeys[K](keys: K*): Matcher[Iterable[(K, Any)]]

    matches if map.

    matches if map.contains(k) forall key k

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

    alias for haveSize

    alias for haveSize

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

    matches if file.

    matches if file.list == list

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

    matches if file.

    matches if file.getName == name

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

    matches if file.

    matches if file.getParent == path

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

    matches if new File(path).

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

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

    matches if new File(path).

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

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

    matches if c.

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

    Definition Classes
    AnyBaseMatchers
  282. 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
  283. 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
  284. def haveValues[V](values: V*): Matcher[Iterable[(Any, V)]]

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

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

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

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

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

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

    Definition Classes
    FragmentsBuilder
  287. 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

    Definition Classes
    FragmentsBuilder
  288. def include(tags: String): Arguments

    shortcut to include only some tagged fragments

    shortcut to include only some tagged fragments

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

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

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

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

    Definition Classes
    SpecificationInclusion
  293. def includeAlsoTrace(patterns: String*): IncludeExcludeStackTraceFilter

    shortcut to add include trace patterns

    shortcut to add include trace patterns

    Definition Classes
    ArgumentsShortcuts
  294. 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
  295. def inputStream(filePath: String): InputStream

    returns

    a FileInputStream for a given file path

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

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

    Definition Classes
    AnyBeHaveMatchers
  298. def is: Fragments

    declaration of Fragments from the user

    declaration of Fragments from the user

    Definition Classes
    SpecificationSpecificationStructure
  299. def isAbsolute(path: String): Boolean

    returns

    true if the file is absolute

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

    returns

    true if the File represented by this path is a directory

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

    returns

    true if the file is a directory

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

    returns

    true if the file is a file

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

    returns

    true if the file is hidden

    Definition Classes
    FileSystem
  304. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  305. def isolated: Arguments

    returns

    arguments for a specification where examples must be executed in their own specification

    Definition Classes
    ArgumentsShortcuts
  306. implicit def javaCollectionIsSized[T <: java.util.Collection[_]]: Sized[T]

    any java collection has a size

    any java collection has a size

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

    Definition Classes
    MapBeHaveMatchers
  308. def keys[K](ks: K*): Matcher[Iterable[(K, Any)]]

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

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

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

    Definition Classes
    StandardMatchResults
  312. 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

    Definition Classes
    LazyParameters
  313. def left[T]: LeftMatcher[Nothing]

    Definition Classes
    EitherBaseMatchers
  314. def left[T](t: ⇒ T): Matcher[Either[T,_$9] forSome { type _$9 }]

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

    alias for haveSize

    alias for haveSize

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

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

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

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

    Definition Classes
    AnyBeHaveMatchers
  320. 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
  321. def link(f: Fragments): Fragments

    add a new link to the Fragments

    add a new link to the Fragments

    Definition Classes
    FragmentsBuilder
  322. 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
  323. def listFiles(path: String): List[String]

    returns

    the files of that directory

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

    matches if new File(path).

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

    Definition Classes
    PathBaseMatchers
  325. def literate: Arguments

    returns

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

    Definition Classes
    ArgumentsShortcuts
  326. def loadXhtmlFile(filePath: String, report: (Exception, String) ⇒ Unit = defaultLoadXhtmlFileReport): 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
  327. def loadXmlFile(filePath: String)(report: (Exception) ⇒ Unit = (e:Exception) => e.printStackTrace): NodeSeq

    returns

    the xml content of a file, using the XML parser

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

    Definition Classes
    TimeConversions
  329. 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
  330. implicit def matchExample(expression: ⇒ org.specs2.matcher.MatchResult[_]): Example

    Definition Classes
    AutoExamplesLowImplicits
  331. 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

    Definition Classes
    AutoExamplesLowImplicits
  332. 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

    Definition Classes
    AutoExamplesLowImplicits
  333. 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

    Definition Classes
    MatchersImplicits
  334. def matchResultToResult[T](m: MatchResult[T]): Result

    this method can be overriden to intercept the transformation of a MatchResult to a Result

    this method can be overriden to intercept the transformation of a MatchResult to a Result

    Attributes
    protected
    Definition Classes
    Expectations
  335. 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

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

    Definition Classes
    MatchersImplicits
  337. def matching(r: Regex): BeMatchingRegex

    Definition Classes
    StringBeHaveMatchers
  338. def matching(t: Pattern): BeMatchingPattern

    Definition Classes
    StringBeHaveMatchers
  339. def matching(t: ⇒ String): BeMatching

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

    creates a new directory

    creates a new directory

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

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

    Definition Classes
    AnyRef
  343. def nocolor: Arguments

    shortcut to avoid colored output

    shortcut to avoid colored output

    Definition Classes
    ArgumentsShortcuts
  344. def noindent: Arguments

    shortcut to avoid automatic indentation

    shortcut to avoid automatic indentation

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

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

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

    negate a matcher

    negate a matcher

    Definition Classes
    AnyBaseMatchers
  348. final def notify(): Unit

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

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

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

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

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

    shortcut to execute and print only some examples

    shortcut to execute and print only some examples

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

    Definition Classes
    TraversableBeHaveMatchers
  355. 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

    Definition Classes
    SpecificationFeatures
  356. def p: Fragments

  357. def pair[K, V](p: (K, V)): Matcher[Iterable[(K, V)]]

    Definition Classes
    MapBeHaveMatchers
  358. 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

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

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

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

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

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

    Definition Classes
    FileBeHaveMatchers
  364. def pending: Pending

    Definition Classes
    StandardResults
  365. def pending(s: Pending): Nothing

    Attributes
    protected
    Definition Classes
    ThrownExpectations
  366. def pending(m: String): Nothing

    Attributes
    protected
    Definition Classes
    ThrownExpectations
  367. def plan: Arguments

    shortcut to show only the text without any execution

    shortcut to show only the text without any execution

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

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

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

    Definition Classes
    AutoExamplesLowImplicits
  373. implicit def resultFragments(result: ⇒ 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

    Definition Classes
    AutoExamplesLowImplicits
  374. 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

    Definition Classes
    AutoExamplesLowImplicits
  375. def right[T]: RightMatcher[Nothing]

    Definition Classes
    EitherBaseMatchers
  376. def right[T](t: ⇒ T): Matcher[Either[_$1,T] forSome { type _$1 }]

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

    any scala array has a size

    any scala array has a size

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

    any scala collection has a size

    any scala collection has a size

    Definition Classes
    TraversableBaseMatchers
  379. 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
  380. 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
  381. 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

    Definition Classes
    MatchersImplicits
  382. def sequential: Arguments

    returns

    arguments for a specification where examples must be executed sequentially

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

    shortcut to print only some statuses

    shortcut to print only some statuses

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

    alias for haveSize

    alias for haveSize

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

    Definition Classes
    TraversableBeHaveMatchers
  386. def skipAll: Arguments

    shortcut to skip all examples

    shortcut to skip all examples

    Definition Classes
    ArgumentsShortcuts
  387. def skipAllIf(condition: ⇒ Boolean): Arguments

    shortcut to skip all examples when a condition is true.

    shortcut to skip all examples when a condition is true. if the condition throws an exception, its stacktrace is *not* printed and all the examples are skipped

    Definition Classes
    ArgumentsShortcuts
  388. def skipped: Skipped

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

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

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

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

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

    alias for beSorted

    alias for beSorted

    Definition Classes
    TraversableBaseMatchers
  394. var specFragments: Fragments

    local mutable contents of the specification

    local mutable contents of the specification

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

    matches if b.

    matches if b.startsWith(a)

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

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

    add a new step to the Fragments

    add a new step to the Fragments

    Definition Classes
    FragmentsBuilder
  398. def stopOnFail: Arguments

    shortcut to stop after the first failure or error

    shortcut to stop after the first failure or error

    Definition Classes
    ArgumentsShortcuts
  399. def stopOnSkip: Arguments

    shortcut to stop after the first skipped result

    shortcut to stop after the first skipped result

    Definition Classes
    ArgumentsShortcuts
  400. 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

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

    Definition Classes
    StringBaseMatchers
  402. implicit def stringToHtmlLinkFragments(s: String): HtmlLinkFragments

    Links to other specifications creation

    Links to other specifications creation

    Definition Classes
    FragmentsBuilder
    See also

    org.specs2.UserGuide

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

    Definition Classes
    FragmentsBuilder
  404. def success: Success

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

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

    Definition Classes
    AnyRef
  407. def t(n: Int): Tab

  408. def t: Tab

  409. implicit def text(s: String): MutableSpecText

    Definition Classes
    FragmentsBuilder
  410. implicit def textAndFormattingFragment(s: ⇒ String): TextAndFormattingFragment

    This implicit allows to follow a string object by a Formatting fragment

    This implicit allows to follow a string object by a Formatting fragment

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

    returns

    a Fragments object from a single piece of text

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

    returns

    a Fragments object from a string

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

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

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

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

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

    returns

    a matcher checking the value of an Exception

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

    returns

    a matcher checking the type of an Exception

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

    alias for throwA

    alias for throwA

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

    alias for throwA

    alias for throwA

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

    alias for throwA

    alias for throwA

    Definition Classes
    ExceptionBaseMatchers
  423. 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

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

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

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

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

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

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

    Definition Classes
    ExceptionBeHaveMatchers
  430. 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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    OptionBeHaveMatchers
  443. 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

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

    Definition Classes
    MapBeHaveMatchers
  445. 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

    Definition Classes
    PathBeHaveMatchers
  446. implicit def toPendingUntilFixed[T](t: ⇒ T)(implicit arg0: (T) ⇒ Result): PendingUntilFixed[T]

    Definition Classes
    PendingUntilFixed
  447. 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

    Definition Classes
    MatchersImplicits
  448. def toString(): String

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

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

    Definition Classes
    XmlBeHaveMatchers
  451. def todo: Pending

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

    Definition Classes
    TraversableBeHaveMatchers
  453. 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

    Definition Classes
    MatchersImplicits
  454. def typedEqualTo[T](t: ⇒ T): BeTypedEqualTo[T]

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  455. 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
  456. 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
  457. 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

    Definition Classes
    RegexSteps
  458. 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

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

    Definition Classes
    MapBeHaveMatchers
  460. def values[V](vs: V*): Matcher[Iterable[(Any, V)]]

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

    Definition Classes
    MatchersImplicits
  462. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  465. 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
  466. def wasIssue: Arguments

    shortcut to include only previousy failed/errors examples

    shortcut to include only previousy failed/errors examples

    Definition Classes
    ArgumentsShortcuts
  467. def wontdo: Success

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

    Definition Classes
    FileBeHaveMatchers
  469. 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
  470. 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
  471. 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
  472. def xonly: Arguments

    shortcut to print only failures and errors

    shortcut to print only failures and errors

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

    alias for beCloseTo

    alias for beCloseTo

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

    alias for beCloseTo

    alias for beCloseTo

    Definition Classes
    NumericBaseMatchers

Inherited from Specification

Inherited from SpecificationFeatures

Inherited from Debug

Inherited from Contexts

Inherited from PendingUntilFixed

Inherited from TimeConversions

Inherited from AutoExamples

Inherited from AutoExamples

Inherited from AutoExamplesLowImplicits

Inherited from StandardMatchResults

Inherited from StandardResults

Inherited from FormattingFragments

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 CanBeEqual

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 ExamplesFactory

Inherited from FragmentsBuilder

Inherited from ExamplesFactory

Inherited from RegexSteps

Inherited from SpecificationStructure

Inherited from AnyRef

Inherited from Any