org.specs2.specification.core

Fragment

Related Docs: object Fragment | package core

case class Fragment(description: Description, execution: Execution, location: Location = StacktraceLocation()) 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 = StacktraceLocation())

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef
  8. val execution: Execution

  9. def executionResult: Result

    returns

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

  10. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  12. def isExecutable: Boolean

    returns

    true if this fragment can be executed

  13. def isExecuted: Boolean

    returns

    true if this fragment has been executed

  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def isolate: Fragment

  16. def join: Fragment

    various methods to stop the execution of the next fragment

  17. val location: Location

  18. def makeGlobal(when: Boolean): Fragment

  19. def mustStopOn(r: Result): Boolean

    returns

    stop the execution of the next fragment based on a condition

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

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

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

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

    set a different execution

  24. def setLocation(location: Location): Fragment

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

    set the previous execution result when known

  26. def setTimeout(timeout: FiniteDuration): Fragment

  27. def skip: Fragment

    skip this fragment

  28. def stopOn(r: Result): Fragment

    various methods to stop the execution of the next fragment

  29. def stopOnError: Fragment

  30. def stopOnFail: Fragment

  31. def stopOnSkipped: Fragment

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

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

    Definition Classes
    AnyRef
  34. def toString(): String

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

    update the description

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

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

  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 was(statusCheck: (String) ⇒ Boolean): Boolean

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped