trait AllExpectations extends StoredExpectations with FragmentsFactory with SpecificationStructure with ArgumentsCreation
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.
- Alphabetic
- By Inheritance
- AllExpectations
- ArgumentsCreation
- SpecificationStructure
- ContextualSpecificationStructure
- FragmentsFactory
- StoredExpectations
- Expectations
- ExpectationsDescription
- TypedEqual
- ExpectationsCreation
- MatchResultStackTrace
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
Descriptible[T] extends AnyRef
- Definition Classes
- ExpectationsDescription
-
class
ExpectationDescription extends AnyRef
- Definition Classes
- ExpectationsDescription
-
class
TypedEqualExpectation[T] extends AnyRef
- Definition Classes
- TypedEqual
Abstract Value Members
-
abstract
def
is: SpecStructure
- Definition Classes
- SpecificationStructure
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addLocation(message: String, location: String): String
- Definition Classes
- StoredExpectations
-
def
args(ex: ArgProperty[String] = ArgProperty[String](), include: ArgProperty[String] = ArgProperty[String](), exclude: ArgProperty[String] = ArgProperty[String](), was: ArgProperty[String] = ArgProperty[String](), plan: ArgProperty[Boolean] = ArgProperty[Boolean](), skipAll: ArgProperty[Boolean] = ArgProperty[Boolean](), stopOnFail: ArgProperty[Boolean] = ArgProperty[Boolean](), stopOnError: ArgProperty[Boolean] = ArgProperty[Boolean](), stopOnIssue: ArgProperty[Boolean] = ArgProperty[Boolean](), stopOnSkip: ArgProperty[Boolean] = ArgProperty[Boolean](), sequential: ArgProperty[Boolean] = ArgProperty[Boolean](), batchSize: ArgProperty[Int] = ArgProperty[Int](), asap: 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
- ArgumentsCreation
-
lazy val
args: ArgumentsNamespace
- Definition Classes
- ArgumentsCreation
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkFailure[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
- Attributes
- protected
- Definition Classes
- StoredExpectations → ExpectationsCreation
-
def
checkResultFailure(r: ⇒ Result): Result
this method can be overridden to throw exceptions when checking the result
this method can be overridden to throw exceptions when checking the result
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]
- returns
an Expectable with a description function
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]
- returns
an Expectable with a description function
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]
- returns
an Expectable with a description
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T): Expectable[T]
- returns
an Expectable
- Definition Classes
- ExpectationsCreation
-
def
createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]
- returns
an Expectable with a function to show the element T
- Definition Classes
- ExpectationsCreation
-
def
decorate(is: SpecStructure, env: Env): SpecStructure
- Definition Classes
- SpecificationStructure
-
implicit
def
describe[T](t: ⇒ T): Descriptible[T]
describe a value with the aka method
describe a value with the aka method
- Definition Classes
- ExpectationsDescription
-
implicit
def
describeExpectation(description: String): ExpectationDescription
- Definition Classes
- ExpectationsDescription
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
implicit
def
fragmentFactory: FragmentFactory
- returns
an example factory which will take the stored results and make them the example result
- Attributes
- protected
- Definition Classes
- AllExpectations → FragmentsFactory
-
def
fragments: (Env) ⇒ Fragments
- Definition Classes
- ContextualSpecificationStructure
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map(structure: SpecStructure): SpecStructure
modify the specification structure
modify the specification structure
- Definition Classes
- AllExpectations → SpecificationStructure
-
def
map(fs: ⇒ Fragments, env: Env): Fragments
modify the fragments, using the current environment
modify the fragments, using the current environment
- Definition Classes
- SpecificationStructure
-
def
map(fs: ⇒ Fragments): Fragments
modify the fragments
modify the fragments
- Definition Classes
- SpecificationStructure
-
def
mapMatchResult[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to intercept a MatchResult and change its message before it is thrown
this method can be overridden to intercept a MatchResult and change its message before it is thrown
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
def
sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]
- returns
the match result without any side-effects
- Definition Classes
- StoredExpectations → ExpectationsCreation
-
def
setStacktrace[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
- Attributes
- protected
- Definition Classes
- MatchResultStackTrace
-
def
storedResults: Seq[Result]
- Definition Classes
- StoredExpectations
-
def
structure: (Env) ⇒ SpecStructure
- Definition Classes
- SpecificationStructure → ContextualSpecificationStructure
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
implicit
def
typedEqualExpectation[T](t: ⇒ T): TypedEqualExpectation[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
- TypedEqual
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )