object OutcomeOf extends OutcomeOf
Companion object that facilitates the importing of OutcomeOf's method as
an alternative to mixing it in. One use case is to import OutcomeOf's method so you can use
it in the Scala interpreter.
- Source
- OutcomeOf.scala
- Alphabetic
- By Inheritance
- OutcomeOf
- OutcomeOf
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
-    def outcomeOf(f: => Any): OutcomeExecutes the supplied code (a by-name parameter) and returns an Outcome.Executes the supplied code (a by-name parameter) and returns an Outcome.Because Errors are used to denote serious errors, ScalaTest does not always treat a test that completes abruptly with anErroras a test failure, but sometimes as an indication that serious problems have arisen that should cause the run to abort, and theoutcomeOfmethod exhibits the same behavior. For example, if a test completes abruptly with anOutOfMemoryError, it will not be reported as a test failure, but will instead cause the run to abort. Because not everyone usesErrors only to represent serious problems, however, ScalaTest only behaves this way for the following exception types (and their subclasses):- java.lang.annotation.AnnotationFormatError
- java.awt.AWTError
- java.nio.charset.CoderMalfunctionError
- javax.xml.parsers.FactoryConfigurationError
- java.lang.LinkageError
- java.lang.ThreadDeath
- javax.xml.transform.TransformerFactoryConfigurationError
- java.lang.VirtualMachineError
 The previous list includes all Errors that exist as part of Java 1.5 API, excludingjava.lang.AssertionError. If the code supplied tooutcomeOfcompletes abruptly in one of the errors in the previous list,outcomeOfwill not return anOutcome, but rather will complete abruptly with the same exception. will wrap any other exception thrown by the supplied code in aSomeand return it.The outcomeOfmethod (and ScalaTest in general) does treat a thrownAssertionErroras an indication of a test failure and therefore returns aFailedwrapping theAssertionError. In addition, any otherErrorthat is not an instance of a type mentioned in the previous list will be caught by theoutcomeOfand transformed as follows:If the code block completes normally (i.e., it doesn't throw any exception), outcomeOfresults inSucceeded.- f
- a block of code to execute 
- returns
- an - Outcomerepresenting the outcome of executing the block of code
 - Definition Classes
- OutcomeOf
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def toString(): String- Definition Classes
- AnyRef → Any
 
-   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()
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
Deprecated Value Members
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated