SuccessOrFailure
Wrapper class that adds success and failure methods to scala.util.Try, allowing
you to make statements like:
try1.success.value should be > 9 try2.failure.exception should have message "/ by zero"
- Value parameters:
- theTry
An
Tryto convert toSuccessOrFailure, which provides thesuccessandfailuremethods.
Value members
Concrete methods
Returns the Try passed to the constructor as a Failure, if it is a Failure, else throws TestFailedException with
a detail message indicating the Try was not a Failure.
Returns the Try passed to the constructor as a Failure, if it is a Failure, else throws TestFailedException with
a detail message indicating the Try was not a Failure.
Returns the Try passed to the constructor as a Success, if it is a Success, else throws TestFailedException with
a detail message indicating the Try was not a Success.
Returns the Try passed to the constructor as a Success, if it is a Success, else throws TestFailedException with
a detail message indicating the Try was not a Success.