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
    @throws( ... )
  6. val description: Description

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

    Permalink
    Definition Classes
    AnyRef
  8. val execution: Execution

    Permalink
  9. def executionFatalOrResult: \/[FatalExecution, Result]

    Permalink

    returns

    a fatal error or a result

  10. def executionResult: Result

    Permalink

    returns

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

  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def isExecutable: Boolean

    Permalink

    returns

    true if this fragment can be executed

  14. def isExecuted: Boolean

    Permalink

    returns

    true if this fragment has been executed

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isolate: Fragment

    Permalink
  17. def join: Fragment

    Permalink

    various methods to stop the execution of the next fragment

  18. val location: Location

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

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

    Permalink

    returns

    stop the execution of the next fragment based on a condition

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

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

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

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

    Permalink

    set a different execution

  25. def setLocation(location: Location): Fragment

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

    Permalink

    set the previous execution result when known

  27. def setTimeout(timeout: FiniteDuration): Fragment

    Permalink
  28. def skip: Fragment

    Permalink

    skip this fragment

  29. def stopOn(r: Result): Fragment

    Permalink

    various methods to stop the execution of the next fragment

  30. def stopOnError: Fragment

    Permalink
  31. def stopOnFail: Fragment

    Permalink
  32. def stopOnSkipped: Fragment

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

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

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

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

    Permalink

    update the description

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

    Permalink
  38. def updateRun(r: ((Env) ⇒ Result) ⇒ (Env) ⇒ Result): Fragment

    Permalink
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  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. def was(statusCheck: (String) ⇒ Boolean): Boolean

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped