org.specs2.specification

AllExpectations

trait AllExpectations extends StoredExpectations with ExamplesFactory with SpecificationStructure with ArgumentsArgs

This trait can be mixed-in a specification to allow examples to have all of their expectations being evaluated (unless the example body throws an exception of course).

All the results are collected into a list, provided by the StoredExpectations trait. These results form then the body of the each example (decorated by a special ExampleFactory) so that each example returns a Result which is the summary of all the individual issues.

It must be noted that this trait relies on a mutable list to collect the results as they are created in the example body. Because of this restriction, a Specification using that trait can either run sequentially or isolated.

If the specification is neither sequential or isolated, we force it to be isolated by default.

Linear Supertypes
ArgumentsArgs, ArgProperties, SpecificationStructure, DefaultFragmentsFormatting, TagsAssociation, FragmentsFormatting, ExamplesFactory, StoredExpectations, Expectations, CanBeEqual, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AllExpectations
  2. ArgumentsArgs
  3. ArgProperties
  4. SpecificationStructure
  5. DefaultFragmentsFormatting
  6. TagsAssociation
  7. FragmentsFormatting
  8. ExamplesFactory
  9. StoredExpectations
  10. Expectations
  11. CanBeEqual
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class CanBeEqualExpectation[T] extends AnyRef

    Definition Classes
    CanBeEqual
  2. class Descriptible[T] extends AnyRef

    Definition Classes
    Expectations

Abstract Value Members

  1. abstract def is: Fragments

    declaration of Fragments from the user

    declaration of Fragments from the user

    Definition Classes
    SpecificationStructure

Concrete 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. implicit def anyToArgProperty[T](t: ⇒ T): ArgProperty[T]

    Definition Classes
    ArgProperties
  7. def args(ex: ArgProperty[String], include: ArgProperty[String], exclude: ArgProperty[String], wasIssue: ArgProperty[Boolean], was: ArgProperty[String], plan: ArgProperty[Boolean], skipAll: ArgProperty[Boolean], stopOnFail: ArgProperty[Boolean], stopOnSkip: ArgProperty[Boolean], sequential: ArgProperty[Boolean], isolated: ArgProperty[Boolean], random: ArgProperty[Boolean], xonly: ArgProperty[Boolean], showOnly: ArgProperty[String], color: ArgProperty[Boolean]): Arguments

    Definition Classes
    ArgumentsArgs
  8. lazy val args: ArgumentsNamespace

    Definition Classes
    ArgumentsArgs
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. implicit def canBeEqual[T](t: ⇒ T): CanBeEqualExpectation[T]

    Definition Classes
    CanBeEqual
  11. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    Attributes
    protected
    Definition Classes
    Expectations
  12. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    Attributes
    protected
    Definition Classes
    StoredExpectations → Expectations
  13. def checkResultFailure(r: Result): Result

    Attributes
    protected
    Definition Classes
    StoredExpectations → Expectations
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]

    Definition Classes
    Expectations
  16. def createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]

    Definition Classes
    Expectations
  17. def createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]

    Definition Classes
    Expectations
  18. def createExpectable[T](t: ⇒ T): Expectable[T]

    Definition Classes
    Expectations
  19. def createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]

    Definition Classes
    Expectations
  20. implicit def describe[T](t: ⇒ T): Descriptible[T]

    Definition Classes
    Expectations
  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  23. implicit def exampleFactory: ExampleFactory

    returns

    an example factory which will take the stored results and make them the example result

    Definition Classes
    AllExpectationsExamplesFactory
  24. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def formatFragments: (Fragments) ⇒ Fragments

    format a list of fragments according to their formatting tags

    format a list of fragments according to their formatting tags

    Definition Classes
    DefaultFragmentsFormattingFragmentsFormatting
  26. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. def identification: SpecIdentification

    specName provides useful information identifying the specification: title, className, url.

    specName provides useful information identifying the specification: title, className, url...

    Definition Classes
    SpecificationStructure
  29. implicit def identifySpecificationStructure(s: SpecificationStructure): SpecIdentification

    automatically convert a specification to its identification

    automatically convert a specification to its identification

    Definition Classes
    SpecificationStructure
  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. def map(fs: ⇒ Fragments): Fragments

    we force the specification to be isolated if it's not sequential or already isolated.

    we force the specification to be isolated if it's not sequential or already isolated. this is important because when an example runs, its results are being stored into a shared list

    Definition Classes
    AllExpectationsSpecificationStructure
  32. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    returns

    a Result having its location as part of its message

    Attributes
    protected
    Definition Classes
    AllExpectations → Expectations
  33. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  36. def resultsContext(results: ⇒ Seq[Result]): Context

    create a new Context with the list of captured results.

    create a new Context with the list of captured results.

    This method could be overridden to filter the captured results and remove the skipped results for example

  37. def storedResults: Seq[Result]

    Definition Classes
    StoredExpectations
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ArgumentsArgs

Inherited from ArgProperties

Inherited from SpecificationStructure

Inherited from TagsAssociation

Inherited from FragmentsFormatting

Inherited from ExamplesFactory

Inherited from StoredExpectations

Inherited from Expectations

Inherited from CanBeEqual

Inherited from AnyRef

Inherited from Any

Ungrouped