t

org.specs2.specification

AllExpectations

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. Protected

Type Members

  1. class Descriptible[T] extends AnyRef
    Definition Classes
    ExpectationsDescription
  2. class ExpectationDescription extends AnyRef
    Definition Classes
    ExpectationsDescription
  3. class TypedEqualExpectation[T] extends AnyRef
    Definition Classes
    TypedEqual

Abstract Value Members

  1. abstract def is: SpecStructure
    Definition Classes
    SpecificationStructure

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addLocation(message: String, location: String): String
    Definition Classes
    StoredExpectations
  5. def anError: Error

    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
    Definition Classes
    ArgumentsCreation
  7. lazy val args: ArgumentsNamespace
    Definition Classes
    ArgumentsCreation
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def checkFailure[T](m: MatchResult[T]): MatchResult[T]
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  10. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]
    Attributes
    protected
    Definition Classes
    StoredExpectations → ExpectationsCreation
  11. def checkResultFailure(r: => Result): Result
    Attributes
    protected
    Definition Classes
    StoredExpectations → ExpectationsCreation
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. def createExpectable[T](t: => T, alias: Option[(String) => String]): Expectable[T]
    Definition Classes
    ExpectationsCreation
  14. def createExpectable[T](t: => T, alias: (String) => String): Expectable[T]
    Definition Classes
    ExpectationsCreation
  15. def createExpectable[T](t: => T, alias: => String): Expectable[T]
    Definition Classes
    ExpectationsCreation
  16. def createExpectable[T](t: => T): Expectable[T]
    Definition Classes
    ExpectationsCreation
  17. def createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]
    Definition Classes
    ExpectationsCreation
  18. def decorate(is: SpecStructure, env: Env): SpecStructure
    Definition Classes
    SpecificationStructure
  19. implicit def describe[T](t: => T): Descriptible[T]
    Definition Classes
    ExpectationsDescription
  20. implicit def describeExpectation(description: String): ExpectationDescription
    Definition Classes
    ExpectationsDescription
  21. def done: Success
    Definition Classes
    StandardResults
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. def failure(message: String): Failure

    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
    Definition Classes
    StandardResults
  26. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  27. implicit def fragmentFactory: FragmentFactory

    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
  29. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def map(structure: SpecStructure): SpecStructure

    modify the specification structure

    modify the specification structure

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

    modify the fragments, using the current environment

    modify the fragments, using the current environment

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

    modify the fragments

    modify the fragments

    Definition Classes
    SpecificationStructure
  35. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. def pending[R](r: => R)(implicit arg0: AsResult[R]): Pending
    Definition Classes
    StandardResults
  40. def pending: Pending
    Definition Classes
    StandardResults
  41. def pending(message: String): Pending
    Definition Classes
    StandardResults
  42. 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

  43. def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]
    Definition Classes
    StoredExpectations → ExpectationsCreation
  44. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]
    Attributes
    protected
    Definition Classes
    MatchResultStackTrace
  45. def skipped(message: String): Skipped

    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
    Definition Classes
    StandardResults
  47. def skipped: Skipped
    Definition Classes
    StandardResults
  48. def storedResults: Seq[Result]
    Definition Classes
    StoredExpectations
  49. def structure: (Env) => SpecStructure
  50. def success: Success
    Definition Classes
    StandardResults
  51. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  52. def toString(): String
    Definition Classes
    AnyRef → Any
  53. def todo: Pending
    Definition Classes
    StandardResults
  54. implicit def typedEqualExpectation[T](t: => T): TypedEqualExpectation[T]
    Definition Classes
    TypedEqual
  55. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  56. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  57. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  58. def wontdo: Success
    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