Returns the Validated
passed to the constructor as an Invalid
, if it is an Invalid
,
else throws TestFailedException
with a detail message indicating the Validated
was not an Invalid
.
Returns the Validated
passed to the constructor as an Invalid
, if it is an Invalid
,
else throws TestFailedException
with a detail message indicating the Validated
was not an Invalid
.
Allow .invalidValue on an validated to extract the invalid side.
Allow .invalidValue on an validated to extract the invalid side. Like .value, but for the Invalid
.
Returns the Validated
passed to the constructor as a Valid
, if it is a Valid
,
else throws TestFailedException
with a detail message indicating the Validated
was not a Valid
.
Returns the Validated
passed to the constructor as a Valid
, if it is a Valid
,
else throws TestFailedException
with a detail message indicating the Validated
was not a Valid
.
(Since version ) see corresponding Javadoc for more information.
Container class for matching success type stuff in
cats.data.Validated
containers, similar toorg.scalatest.OptionValues.Valuable
Meant to allow you to make statements like:
Where it only matches if result is
Valid(9)
Otherwise your test will fail, indicating that it was left instead of right
org.scalatest.OptionValues.Valuable