Companion object that facilitates the importing of RecoverMethods
's method as
an alternative to mixing it in. One use case is to import RecoverMethods
's method so you can use
it in the Scala interpreter.
- Companion:
- class
Value members
Inherited methods
Transforms a future of any type into a Future[T]
, where T
is a given
expected exception type, which succeeds if the given future
completes with a Failure
containing the specified exception type.
Transforms a future of any type into a Future[T]
, where T
is a given
expected exception type, which succeeds if the given future
completes with a Failure
containing the specified exception type.
See the main documentation for this trait for more detail and examples.
- Value parameters:
- future
A future of any type, which you expect to fail with an exception of the specified type T
- Returns:
a Future[T] containing on success the expected exception, or containing on failure a
TestFailedException
- Inherited from:
- RecoverMethods
Transforms a future of any type into a Future[Assertion]
that succeeds if the future
completes with a Failure
containing the specified exception type.
Transforms a future of any type into a Future[Assertion]
that succeeds if the future
completes with a Failure
containing the specified exception type.
See the main documentation for this trait for more detail and examples.
- Value parameters:
- future
A future of any type, which you expect to fail with an exception of the specified type T
- Returns:
a Future[Assertion] containing on success the
Succeeded
singleton, or containing on failure aTestFailedException
- Inherited from:
- RecoverMethods