Class/Object

org.specs2.specification.core

Fragment

Related Docs: object Fragment | package core

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef
  8. def executedResult: Action[ExecutedResult]

    Permalink

    returns

    the result of this fragment and its execution time

  9. val execution: Execution

    Permalink
  10. def executionResult: Action[Result]

    Permalink

    returns

    the result of this fragment

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. def isExecutable: Boolean

    Permalink

    returns

    true if this fragment can be executed

  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def isolate: Fragment

    Permalink
  15. def join: Fragment

    Permalink

    various methods to stop the execution of the next fragment

  16. val location: Location

    Permalink
  17. def makeGlobal(when: Boolean): Fragment

    Permalink
  18. def mustStopOn(r: Result): Boolean

    Permalink

    returns

    stop the execution of the next fragment based on a condition

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

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. def setExecution(e: Execution): Fragment

    Permalink

    set a different execution

  23. def setLocation(location: Location): Fragment

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

    Permalink

    set the previous execution result when known

  25. def setTimeout(timeout: FiniteDuration): Fragment

    Permalink
  26. def skip: Fragment

    Permalink

    skip this fragment

  27. def startExecution(env: Env): Fragment

    Permalink

    start the execution of this fragment

  28. def startExecutionAfter(others: List[Fragment])(env: Env): Fragment

    Permalink

    start the execution of this fragment when the other ones has finished executing

  29. def startExecutionAfter(other: Option[Fragment])(env: Env): Fragment

    Permalink

    start the execution of this fragment when the other one has finished executing

  30. def startExecutionAfter(other: Fragment)(env: Env): Fragment

    Permalink

    start the execution of this fragment when the other one has finished executing

  31. def stopOn(r: Result): Fragment

    Permalink

    various methods to stop the execution of the next fragment

  32. def stopOnError: Fragment

    Permalink
  33. def stopOnFail: Fragment

    Permalink
  34. def stopOnSkipped: Fragment

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

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

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

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

    Permalink

    update the description

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

    Permalink
  40. final def wait(arg0: Long, arg1: Int): Unit

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

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

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

    Permalink

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped