Checks if a scalaz.Validation
is a specific failure element
Checks if a scalaz.Validation
is a specific failure element
Checks if a scalaz.Validation
is a specific success element
Checks if a scalaz.Validation
is a specific success element
Checks if a scalaz.ValidationNel
contains a specific failure element
Usage:
validationObj should haveFailure (someErrorMessageOrObject)
Can also be used to test multiple elements:
validationObj should (haveFailure (someErrorMessageOrObject) and
haveFailure (someOtherErrorMessageOrObject))
Checks if a scalaz.ValidationNel
contains a specific failure element
Usage:
validationObj should haveFailure (someErrorMessageOrObject)
Can also be used to test multiple elements:
validationObj should (haveFailure (someErrorMessageOrObject) and
haveFailure (someOtherErrorMessageOrObject))
Checks blindly if a scalaz.Validation
is an instance of success.
Checks blindly if a scalaz.Validation
is an instance of success.
Because in ScalaZ ValidationNel[Fail, Succeed]
is just an alias for Validation[NonEmptyList[Fail], Success]
this should catch both types
Import singleton in case you prefer to import rather than mix in