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

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] = ArgProperty[String](), include: ArgProperty[String] = ArgProperty[String](), exclude: ArgProperty[String] = ArgProperty[String](), wasIssue: ArgProperty[Boolean] = ArgProperty[Boolean](), was: ArgProperty[String] = ArgProperty[String](), plan: ArgProperty[Boolean] = ArgProperty[Boolean](), skipAll: ArgProperty[Boolean] = ArgProperty[Boolean](), stopOnFail: ArgProperty[Boolean] = ArgProperty[Boolean](), stopOnSkip: ArgProperty[Boolean] = ArgProperty[Boolean](), sequential: ArgProperty[Boolean] = ArgProperty[Boolean](), isolated: ArgProperty[Boolean] = ArgProperty[Boolean](), xonly: ArgProperty[Boolean] = ArgProperty[Boolean](), showOnly: ArgProperty[String] = ArgProperty[String](), color: ArgProperty[Boolean] = ArgProperty[Boolean]()): Arguments

    shorthand method to create an Arguments object

    shorthand method to create an Arguments object

    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]

    A value can be tested against another with the === operator.

    A value can be tested against another with the === operator. It is equivalent to writing a must_== b

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

    this method can be overriden to throw exceptions when checking the match result

    this method can be overriden to throw exceptions when checking the match result

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

    this method can be overriden to throw exceptions when checking the match result

    this method can be overriden to throw exceptions when checking the match result

    Attributes
    protected
    Definition Classes
    StoredExpectationsExpectations
  13. def checkResultFailure(r: Result): Result

    this method can be overriden to throw exceptions when checking the result

    this method can be overriden to throw exceptions when checking the result

    Attributes
    protected
    Definition Classes
    StoredExpectationsExpectations
  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]

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description

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

    returns

    an Expectable

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

    returns

    an Expectable with a function to show the element T

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

    describe a value with the aka method

    describe a value with the aka method

    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. def is: 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
  31. final def isInstanceOf[T0]: Boolean

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

    this method can be overridden to map additional behavior in the user-defined fragments

    this method can be overridden to map additional behavior in the user-defined fragments

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

    returns

    a Result having its location as part of its message

    Attributes
    protected
    Definition Classes
    AllExpectationsExpectations
  34. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  37. 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 overriden to filter the captured results and remove the skipped results for example

  38. def storedResults: Seq[Result]

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

    Definition Classes
    AnyRef
  40. def toString(): String

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. 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