case class Failed(exception: Throwable) extends Exceptional with Product with Serializable
Outcome for a test that failed, containing an exception describing the cause of the failure.
Note: the difference between this Failed
class and the similarly named FailedStatus
object is that an instance of this class indicates one test failed, whereas the FailedStatus
object indicates either one or more tests failed
and/or one or more suites aborted during a run. Both are used as the result type of Suite
lifecycle methods, but Failed
is a possible result of withFixture
, whereas FailedStatus
is a possible result of run
, runNestedSuites
,
runTests
, or runTest
. In short, Failed
is always just about one test, whereas FailedStatus
could be
about something larger: multiple tests or an entire suite.
- Source
- Outcome.scala
- Alphabetic
- By Inheritance
- Failed
- Exceptional
- Outcome
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Failed(exception: Throwable)
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val exception: Throwable
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val isCanceled: Boolean
Indicates whether this
Outcome
represents a test that was canceled.Indicates whether this
Outcome
represents a test that was canceled.This class's implementation of this method always returns
false
.- returns
true if this
Outcome
is an instance ofCanceled
.
- Definition Classes
- Outcome
- 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 that this
Outcome
represents a test that failed. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- 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 productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
. - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()