case class Canceled(exception: TestCanceledException) extends Exceptional with Product with Serializable
Outcome for a test that was canceled, containing an exception describing the cause of the cancelation.
- Source
- Outcome.scala
- Alphabetic
- By Inheritance
- Canceled
- Exceptional
- Outcome
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Canceled(exception: TestCanceledException)
Value Members
- val exception: TestCanceledException
-
val
isCanceled: Boolean
Indicates that this
Outcome
represents a test that was canceled. -
val
isExceptional: Boolean
Indicates that this
Outcome
represents a test that either failed or was canceled.Indicates that this
Outcome
represents a test that either failed or was canceled.- returns
true
- Definition Classes
- Exceptional → Outcome
-
val
isFailed: Boolean
Indicates whether this
Outcome
represents a test that failed.Indicates whether this
Outcome
represents a test that failed.This class's implementation of this method always returns
false
.- returns
true if this
Outcome
is an instance ofFailed
.
- Definition Classes
- Outcome
-
val
isPending: Boolean
Indicates whether this
Outcome
represents a test that was pending.Indicates whether this
Outcome
represents a test that was pending.This class's implementation of this method always returns
false
.- returns
true if this
Outcome
is an instance ofPending
.
- Definition Classes
- Outcome
-
val
isSucceeded: Boolean
Indicates whether this
Outcome
represents a test that succeeded.Indicates whether this
Outcome
represents a test that succeeded.This class's implementation of this method always returns
false
.- returns
true if this
Outcome
is an instance ofSucceeded
.
- Definition Classes
- Outcome
-
def
toOption: Option[Throwable]
Converts this
Exceptional
to aSome
that wraps the contained exception.Converts this
Exceptional
to aSome
that wraps the contained exception.- returns
A
Some
wrapping the exception contained in thisExceptional
.
- Definition Classes
- Exceptional → Outcome
-
def
toSucceeded: Succeeded.type
Converts this
Outcome
to aSucceeded
.