org.typelevel.scalatest

ValidationMatchers

trait ValidationMatchers extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ValidationMatchers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class BeScalazFailureMatcher[E](element: E) extends Matcher[Validation[E, _]] with Product with Serializable

  2. case class BeScalazSuccessMatcher[T](element: T) extends Matcher[Validation[_, T]] with Product with Serializable

  3. case class HasScalazFailureNelMatcher[E](element: E) extends Matcher[ValidationNel[E, _]] with Product with Serializable

  4. class IsScalazFailureMatcher[E] extends BeMatcher[Validation[E, _]]

  5. class IsScalazSuccessMatcher[T] extends BeMatcher[Validation[_, T]]

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def beFailure[E](element: E): Matcher[Validation[E, _]]

    Checks if a scalaz.Validation is a specific failure element

    Checks if a scalaz.Validation is a specific failure element

    E
    element
    returns

  6. def beSuccess[T](element: T): Matcher[Validation[_, T]]

    Checks if a scalaz.Validation is a specific success element

    Checks if a scalaz.Validation is a specific success element

    T
    element
    returns

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def failure[E]: BeMatcher[Validation[E, _]]

  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. def haveFailure[E](element: E): Matcher[ValidationNel[E, _]]

    Checks if a scalaz.ValidationNel contains a specific failure element Usage: validationObj should haveFailure (someErrorMessageOrObject)

    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))

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def success[T]: BeMatcher[Validation[_, T]]

    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

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped