org.scalatest.OptionValues
Wrapper class that adds a value method to Option, allowing you to make statements like:
value
Option
opt.value should be > 9
An option to convert to Valuable, which provides the value method.
Valuable
Returns the value contained in the wrapped Option, if defined, else throws TestFailedException with a detail message indicating the option was not defined.
TestFailedException
Wrapper class that adds a
value
method toOption
, allowing you to make statements like:opt.value should be > 9