org.specs2.mutable

FragmentsBuilder

trait FragmentsBuilder extends FragmentsBuilder with ExamplesFactory

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
ExamplesFactory, FragmentsBuilder, ExamplesFactory, RegexSteps, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. FragmentsBuilder
  2. ExamplesFactory
  3. FragmentsBuilder
  4. ExamplesFactory
  5. RegexSteps
  6. AnyRef
  7. 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. implicit def exampleFactory : ExampleFactory

    Attributes
    implicit
    Definition Classes
    ExamplesFactory → ExamplesFactory
  20. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. 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
  22. implicit def fragmentFragments (f: ⇒ Fragment): FragmentsFragment

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

    returns

    a Fragments object from a single Fragment

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  24. 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
  25. implicit def fragmentsFragments (fs: ⇒ Fragments): FragmentsFragment

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

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

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

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

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

    Attributes
    implicit
  29. 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
  30. def isInstanceOf [T0] : Boolean

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

    add a new link to the Fragments

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

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

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

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

    local mutable contents of the specification

    local mutable contents of the specification

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

    add a new step to the Fragments

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

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

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

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

    returns

    a Fragments object from a single piece of text

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

    returns

    a Fragments object from a string

    Attributes
    implicit
    Definition Classes
    FragmentsBuilder
  46. 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
  47. def toString (): String

    Definition Classes
    AnyRef → Any
  48. 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
  49. 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
  50. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ExamplesFactory

Inherited from FragmentsBuilder

Inherited from ExamplesFactory

Inherited from RegexSteps

Inherited from AnyRef

Inherited from Any