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 GWTToFragment extends AnyRef

  3. class InExample extends AnyRef

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

  4. class MutableSpecText extends AnyRef

  5. class MutableSpecTitle extends SpecTitle

  6. class WarningForgottenOperator extends AnyRef

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

    Attributes
    implicit
  5. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  7. def >> (fs: Fragments): Fragments

    Attributes
    protected
  8. 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
  9. def action (a: ⇒ Any): Action

    add a new action to the Fragments

  10. def addArguments (a: Arguments): Arguments

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

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

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

    Attributes
    protected
  14. 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
  15. def asInstanceOf [T0] : T0

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

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

    Attributes
    implicit
  18. 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
  19. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  21. implicit def exampleFactory : ExampleFactory

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

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

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

    returns

    a Fragments object from a single Fragment

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  29. 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

    Attributes
    implicit
  30. def hashCode (): Int

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

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

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

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

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

    add a new link to the Fragments

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  40. 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
  41. 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
  42. var specFragments : Fragments

    local mutable contents of the specification

    local mutable contents of the specification

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

    add a new step to the Fragments

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  47. implicit def text (s: String): MutableSpecText

    Attributes
    implicit
  48. implicit def textFragment (s: String): FragmentsFragment

    returns

    a Fragments object from a single piece of text

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

    returns

    a Fragments object from a string

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

    Definition Classes
    AnyRef → Any
  52. 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
  53. 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
  54. def wait (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  56. 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