Converts this Outcome to a Succeeded.
Converts this Outcome to a Succeeded.
When this Outcome instance is not Succeeded, it behaves as followed:
Succeeded if this Outcome instance is a Succeeded.
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.
true if this Outcome is an instance of Canceled.
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.
true
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.
true if this Outcome is an instance of Failed.
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.
true if this Outcome is an instance of Pending.
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.
true if this Outcome is an instance of Succeeded.
Converts this Exceptional to a Some that wraps the contained exception.
Converts this Exceptional to a Some that wraps the contained exception.
A Some wrapping the exception contained in this Exceptional.
Superclass for the two outcomes of running a test that contain an exception:
FailedandCanceled.This class provides a
toOptionmethod that returns aSomewrapping the contained exception, and anisExceptionalfield with the valuetrue. It's companion object provides an extractor that enables patterns that match a test that either failed or canceled, as in:outcome match { case Exceptional(ex) => // handle failed or canceled case case _ => // handle succeeded, pending, or omitted case }