org.scalatest.EitherValues
Wrapper class that adds a value method to RightProjection, allowing you to make statements like:
value
RightProjection
either.right.value should be > 9
A RightProjection to convert to RightValuable, which provides the value method.
RightValuable
Returns the Right value contained in the wrapped RightProjection, if defined as a Right, else throws TestFailedException with a detail message indicating the Either was defined as a Right, not a Left.
Right
TestFailedException
Either
Left
Wrapper class that adds a
value
method toRightProjection
, allowing you to make statements like:either.right.value should be > 9