org.specs2.specification.core

Fragment

case class Fragment(description: Description, execution: Execution, location: Location = ...) extends Product with Serializable

Fragment of a specification

It has a description (generally text but sometimes not, for a step for example) It has an execution which might do or don't do anything (for examples it runs some code)

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

Instance Constructors

  1. new Fragment(description: Description, execution: Execution, location: Location = ...)

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val description: Description

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

    Definition Classes
    AnyRef
  10. val execution: Execution

  11. def executionResult: Result

    returns

    the result of this fragment if it has been executed, Success otherwise

  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def isExecutable: Boolean

    returns

    true if this fragment can be executed

  15. def isExecuted: Boolean

    returns

    true if this fragment has been executed

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def isolate: Fragment

  18. def join: Fragment

    various methods to stop the execution of the next fragment

  19. val location: Location

  20. def makeGlobal(when: Boolean): Fragment

  21. def mustStopOn(r: Result): Boolean

    returns

    stop the execution of the next fragment based on a condition

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

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

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

    Definition Classes
    AnyRef
  25. def setExecution(e: Execution): Fragment

    set a different execution

  26. def setLocation(location: Location): Fragment

  27. def setPreviousResult(r: Option[Result]): Fragment

    set the previous execution result when known

  28. def setTimeout(timeout: FiniteDuration): Fragment

  29. def skip: Fragment

    skip this fragment

  30. def stopOn(r: Result): Fragment

    various methods to stop the execution of the next fragment

  31. def stopOnError: Fragment

  32. def stopOnFail: Fragment

  33. def stopOnSkipped: Fragment

  34. def stopWhen(f: (Result) ⇒ Boolean): Fragment

  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

    Definition Classes
    Fragment → AnyRef → Any
  37. def updateDescription(f: (Description) ⇒ Description): Fragment

    update the description

  38. def updateExecution(f: (Execution) ⇒ Execution): Fragment

  39. def updateRun(r: ((Env) ⇒ Result) ⇒ (Env) ⇒ Result): Fragment

  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def was(statusCheck: (String) ⇒ Boolean): Boolean

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped