org.specs2.mutable

FragmentsBuilder

trait FragmentsBuilder extends FragmentsBuilder

Adding new implicits to support specs-like naming: "the system" should "do this" in { ... }

This trait belongs to the mutable package because it works by mutating a local variable each time a new Fragment is created.

Linear Supertypes
FragmentsBuilder, RegexSteps, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. FragmentsBuilder
  2. FragmentsBuilder
  3. RegexSteps
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Type Members

  1. class Described extends AnyRef

  2. class InExample extends AnyRef

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

  3. class MutableSpecTitle extends SpecTitle

Value Members

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

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

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

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

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

    Attributes
    final
    Definition Classes
    Any
  6. implicit def RegexFragmentToFragments (r: RegexFragment): Fragments

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

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

    Attributes
    implicit
    Definition Classes
    RegexSteps
  7. def action (a: ⇒ Any): Action

    add a new action to the Fragments

  8. def addArguments (a: Arguments): Arguments

    Attributes
    protected
  9. def addExample [T] (ex: ⇒ Example)(implicit arg0: (T) ⇒ Result): Example

    Attributes
    protected
  10. def addFragments (fs: Fragments): Fragments

    Attributes
    protected
  11. def addFragments [T] (s: String, fs: ⇒ T, word: String): Fragments

    Attributes
    protected
  12. implicit def argumentsFragment (a: Arguments): FragmentsFragment

    Arguments creation

    Arguments creation

    returns

    a Fragments object which can be chained with other fragments

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  13. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  14. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. implicit def described (s: String): Described

    Attributes
    implicit
  16. implicit def downcastGiven [X, Y <: X] (gv: Given[Y]): Given[X] { def extract(s: String): Y }

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

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

    Attributes
    implicit
    Definition Classes
    RegexSteps
  17. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  18. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. implicit def forExample (s: String): ExampleDesc

    Example creation

    Example creation

    returns

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

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

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

    returns

    a Fragments object from a single Fragment

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

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

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

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

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  25. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  26. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  27. implicit def inExample (s: String): InExample

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

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

    Attributes
    implicit
  28. implicit def inScope (s: Scope): Success

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

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

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  29. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  30. 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
  31. def link (f: Fragments): Fragments

    add a new link to the Fragments

  32. 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
  33. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  34. def notify (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  36. 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
  37. 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
  38. var specFragments : Fragments

    local mutable contents of the specification

    local mutable contents of the specification

    Attributes
    protected[specs2]
  39. def step (a: ⇒ Any): Step

    add a new step to the Fragments

  40. implicit def stringToHtmlLinkFragments (s: String): HtmlLinkFragments

    Links to other specifications creation

    Links to other specifications creation

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
    See also

    org.specs2.UserGuide

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

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  42. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  43. implicit def textFragment (s: String): FragmentsFragment

    returns

    a Fragments object from a single piece of text

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

    returns

    a Fragments object from a string

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  45. implicit def title (s: String): MutableSpecTitle

    This method allows to add a title to the Specification.

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

    returns

    a Fragments object from a string, with the given title

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder → FragmentsBuilder
  46. def toString (): String

    Definition Classes
    AnyRef → Any
  47. implicit def upcastThen [X, Y <: X] (th: Then[X]): Then[Y]

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

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

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

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

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

    Attributes
    implicit
    Definition Classes
    RegexSteps
  49. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from FragmentsBuilder

Inherited from RegexSteps

Inherited from AnyRef

Inherited from Any