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 executionFatalOrResult: \/[FatalExecution, Result]

    returns

    a fatal error or a result

  12. def executionResult: Result

    returns

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

  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. def isExecutable: Boolean

    returns

    true if this fragment can be executed

  16. def isExecuted: Boolean

    returns

    true if this fragment has been executed

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def isolate: Fragment

  19. def join: Fragment

    various methods to stop the execution of the next fragment

  20. val location: Location

  21. def makeGlobal(when: Boolean): Fragment

  22. def mustStopOn(r: Result): Boolean

    returns

    stop the execution of the next fragment based on a condition

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

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

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

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

    set a different execution

  27. def setLocation(location: Location): Fragment

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

    set the previous execution result when known

  29. def setTimeout(timeout: FiniteDuration): Fragment

  30. def skip: Fragment

    skip this fragment

  31. def stopOn(r: Result): Fragment

    various methods to stop the execution of the next fragment

  32. def stopOnError: Fragment

  33. def stopOnFail: Fragment

  34. def stopOnSkipped: Fragment

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

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

    Definition Classes
    AnyRef
  37. def toString(): String

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

    update the description

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

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

  41. final def wait(): Unit

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

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

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