Trait

org.specs2.specification

AllExpectations

Related Doc: package specification

Permalink

trait AllExpectations extends StoredExpectations with FragmentsFactory with SpecificationStructure with ArgumentsCreation with StandardResults

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
StandardResults, ArgumentsCreation, SpecificationStructure, ContextualSpecificationStructure, FragmentsFactory, StoredExpectations, Expectations, ExpectationsDescription, TypedEqual, ExpectationsCreation, MatchResultStackTrace, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AllExpectations
  2. StandardResults
  3. ArgumentsCreation
  4. SpecificationStructure
  5. ContextualSpecificationStructure
  6. FragmentsFactory
  7. StoredExpectations
  8. Expectations
  9. ExpectationsDescription
  10. TypedEqual
  11. ExpectationsCreation
  12. MatchResultStackTrace
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Descriptible[T] extends AnyRef

    Permalink
    Definition Classes
    ExpectationsDescription
  2. class ExpectationDescription extends AnyRef

    Permalink
    Definition Classes
    ExpectationsDescription
  3. class TypedEqualExpectation[T] extends AnyRef

    Permalink
    Definition Classes
    TypedEqual

Abstract Value Members

  1. abstract def is: SpecStructure

    Permalink
    Definition Classes
    SpecificationStructure

Concrete 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. def addLocation(message: String, location: String): String

    Permalink
    Definition Classes
    StoredExpectations
  5. def anError: Error

    Permalink

    use a side-effect to register a standard result

    use a side-effect to register a standard result

    Definition Classes
    AllExpectations → StandardResults
  6. def args(ex: ArgProperty[String], include: ArgProperty[String], exclude: ArgProperty[String], was: ArgProperty[String], plan: ArgProperty[Boolean], skipAll: ArgProperty[Boolean], stopOnFail: ArgProperty[Boolean], stopOnError: ArgProperty[Boolean], stopOnIssue: ArgProperty[Boolean], stopOnSkip: ArgProperty[Boolean], sequential: ArgProperty[Boolean], batchSize: ArgProperty[Int], asap: ArgProperty[Boolean], isolated: ArgProperty[Boolean], xonly: ArgProperty[Boolean], showOnly: ArgProperty[String], color: ArgProperty[Boolean]): Arguments

    Permalink
    Definition Classes
    ArgumentsCreation
  7. lazy val args: ArgumentsNamespace

    Permalink
    Definition Classes
    ArgumentsCreation
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  10. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    StoredExpectations → ExpectationsCreation
  11. def checkResultFailure(r: ⇒ Result): Result

    Permalink
    Attributes
    protected
    Definition Classes
    StoredExpectations → ExpectationsCreation
  12. def clone(): AnyRef

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

    Permalink
    Definition Classes
    ExpectationsCreation
  14. def createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  15. def createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  16. def createExpectable[T](t: ⇒ T): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  17. def createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  18. def decorate(is: SpecStructure, env: Env): SpecStructure

    Permalink
    Definition Classes
    SpecificationStructure
  19. implicit def describe[T](t: ⇒ T): Descriptible[T]

    Permalink
    Definition Classes
    ExpectationsDescription
  20. implicit def describeExpectation(description: String): ExpectationDescription

    Permalink
    Definition Classes
    ExpectationsDescription
  21. def done: Success

    Permalink
    Definition Classes
    StandardResults
  22. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. def failure(message: String): Failure

    Permalink

    use a side-effect to register a standard result

    use a side-effect to register a standard result

    Definition Classes
    AllExpectations → StandardResults
  25. def failure: Failure

    Permalink
    Definition Classes
    StandardResults
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. implicit def fragmentFactory: FragmentFactory

    Permalink

    returns

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

    Attributes
    protected
    Definition Classes
    AllExpectationsFragmentsFactory
  28. def fragments: (Env) ⇒ Fragments

    Permalink
  29. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  32. def map(structure: SpecStructure): SpecStructure

    Permalink

    modify the specification structure

    modify the specification structure

    Definition Classes
    AllExpectationsSpecificationStructure
  33. def map(fs: ⇒ Fragments, env: Env): Fragments

    Permalink

    modify the fragments, using the current environment

    modify the fragments, using the current environment

    Definition Classes
    SpecificationStructure
  34. def map(fs: ⇒ Fragments): Fragments

    Permalink

    modify the fragments

    modify the fragments

    Definition Classes
    SpecificationStructure
  35. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  36. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  39. def pending[R](r: ⇒ R)(implicit arg0: AsResult[R]): Pending

    Permalink
    Definition Classes
    StandardResults
  40. def pending: Pending

    Permalink
    Definition Classes
    StandardResults
  41. def pending(message: String): Pending

    Permalink
    Definition Classes
    StandardResults
  42. def resultsContext(results: ⇒ Seq[Result]): Context

    Permalink

    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

  43. def sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]

    Permalink
    Definition Classes
    StoredExpectations → ExpectationsCreation
  44. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    MatchResultStackTrace
  45. def skipped(message: String): Skipped

    Permalink

    use a side-effect to register a standard result

    use a side-effect to register a standard result

    Definition Classes
    AllExpectations → StandardResults
  46. def skipped[R](r: ⇒ R)(implicit arg0: AsResult[R]): Skipped

    Permalink
    Definition Classes
    StandardResults
  47. def skipped: Skipped

    Permalink
    Definition Classes
    StandardResults
  48. def storedResults: Seq[Result]

    Permalink
    Definition Classes
    StoredExpectations
  49. def structure: (Env) ⇒ SpecStructure

    Permalink
  50. def success: Success

    Permalink
    Definition Classes
    StandardResults
  51. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  53. def todo: Pending

    Permalink
    Definition Classes
    StandardResults
  54. implicit def typedEqualExpectation[T](t: ⇒ T): TypedEqualExpectation[T]

    Permalink
    Definition Classes
    TypedEqual
  55. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. def wontdo: Success

    Permalink
    Definition Classes
    StandardResults

Inherited from StandardResults

Inherited from ArgumentsCreation

Inherited from SpecificationStructure

Inherited from FragmentsFactory

Inherited from StoredExpectations

Inherited from Expectations

Inherited from ExpectationsDescription

Inherited from TypedEqual

Inherited from ExpectationsCreation

Inherited from MatchResultStackTrace

Inherited from AnyRef

Inherited from Any

Ungrouped