org.specs2.specification

Fragments

Related Docs: class Fragments | package specification

object Fragments extends Serializable

Utility methods for fragments

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Fragments
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. def apply(t: SpecName): Fragments

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def create(fs: Fragment*): Fragments

    returns

    a Fragments object, where the SpecStart might be provided by the passed fragments

  8. def createList(fs: Fragment*): Fragments

    returns

    a Fragments object containing only a seq of Fragments.

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

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. implicit def fragmentsIsMonoid: Monoid[Fragments] { val zero: org.specs2.specification.Fragments }

    Fragments can be added as a monoid

  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def isABr: PartialFunction[Fragment, Fragment]

    returns

    the step if the Fragment is a Br fragment

  16. def isASpecEnd: PartialFunction[Fragment, Fragment]

    returns

    the spec end if the Fragment is a SpecEnd

  17. def isASpecStart: PartialFunction[Fragment, SpecStart]

    returns

    the spec start if the Fragment is a SpecStart

  18. def isAStep: PartialFunction[Fragment, Step]

    returns

    the step if the Fragment is a Step

  19. def isAnAction: PartialFunction[Fragment, Action]

    returns

    the action if the Fragment is an Actino

  20. def isAnEnd: PartialFunction[Fragment, Fragment]

    returns

    the step if the Fragment is an End fragment

  21. def isAnExample: PartialFunction[Fragment, Example]

    returns

    the example if the Fragment is an Example

  22. def isBr: (Fragment) ⇒ Boolean

    returns

    the step if the Fragment is a Br fragment

  23. def isExample: Function[Fragment, Boolean]

    returns

    true if the Fragment is an Example

  24. def isExampleOrStep: Function[Fragment, Boolean]

    returns

    true if the Fragment is an Example or a Step

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def isSomeTag: PartialFunction[Fragment, TagFragment]

    returns

    the text if the Fragment is a TaggingFragment

  27. def isSomeText: PartialFunction[Fragment, Text]

    returns

    the text if the Fragment is a Text

  28. def isSpecEnd: Function[Fragment, Boolean]

    returns

    true if the Fragment is a SpecEnd

  29. def isSpecStart: Function[Fragment, Boolean]

    returns

    true if the Fragment is a SpecStart

  30. def isSpecStartOrEnd: Function[Fragment, Boolean]

    returns

    true if the Fragment is a SpecStart or a SpecEnd

  31. def isStep: Function[Fragment, Boolean]

    returns

    true if the Fragment is a step

  32. def isText: Function[Fragment, Boolean]

    returns

    true if the Fragment is a Text

  33. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def withCreationPaths(fragments: Fragments): Fragments

    returns

    a Fragments object with creation paths set on Examples and Actions

    The path of a Fragment is either:

    • set at construction time when it comes from a mutable specification
    • its index in the sequence of fragments for an acceptance specification
  42. def withSpecName(fragments: Fragments, s: SpecificationStructure): Fragments

    returns

    a Fragments object with the appropriate name set on the SpecStart fragment

    That name is derived from the specification structure name

  43. def withSpecName(fragments: Fragments, name: SpecName): Fragments

    returns

    a Fragments object with the appropriate name set on the SpecStart fragment

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped