org.specs2.specification

Example

case class Example (desc: MarkupString, body: () ⇒ Result) extends Fragment with Executable with Isolable with Product with Serializable

A Example is:

- a description: some text, with possibly some markup annotations for rendering code fragments (used in AutoExamples) - a body: some executable code returning a Result

Linear Supertypes
Serializable, Serializable, Product, Equals, Isolable, Executable, Fragment, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Example
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Isolable
  7. Executable
  8. Fragment
  9. AnyRef
  10. Any
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  7. val body : () ⇒ Result

  8. def canEqual (arg0: Any): Boolean

    Definition Classes
    Example → Equals
  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. val desc : MarkupString

  11. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  12. def equals (a: Any): Boolean

    Definition Classes
    Example → Equals → AnyRef → Any
  13. def execute : Result

    returns

    a Result

    Definition Classes
    Example → Executable
  14. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  16. def global : Example

    this fragment can not be executed in a separate specification

  17. def hashCode (): Int

    Definition Classes
    Example → AnyRef → Any
  18. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  19. val isolable : Boolean

    Definition Classes
    Example → Isolable
  20. val linkedTo : Option[SpecificationStructure]

    Definition Classes
    Fragment
  21. val location : Location

    Definition Classes
    Fragment
  22. def map (f: (Result) ⇒ Result): Example

    modify the result to return

    modify the result to return

    Definition Classes
    Example → Executable
  23. def matches (s: String): Boolean

    Definition Classes
    Example → Fragment
  24. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  25. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  26. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  27. def productArity : Int

    Definition Classes
    Example → Product
  28. def productElement (arg0: Int): Any

    Definition Classes
    Example → Product
  29. def productIterator : Iterator[Any]

    Definition Classes
    Product
  30. def productPrefix : String

    Definition Classes
    Example → Product
  31. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  32. def toString (): String

    Definition Classes
    Example → AnyRef → Any
  33. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Isolable

Inherited from Executable

Inherited from Fragment

Inherited from AnyRef

Inherited from Any