com.wix.accord.scalatest.ResultMatchers

ResultMatcher

case class ResultMatcher(expectedViolations: Set[(ResultMatchers.this)#ViolationMatcher]) extends Matcher[Result] with Product with Serializable

A matcher over validation com.wix.accord.Results. Takes a set of expected violations and return a suitable match result in case of failure.

expectedViolations

The set of expected violations for this matcher.

Linear Supertypes
Serializable, Serializable, Product, Equals, Matcher[Result], (Result) ⇒ MatchResult, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ResultMatcher
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Matcher
  7. Function1
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResultMatcher(expectedViolations: Set[(ResultMatchers.this)#ViolationMatcher])

    expectedViolations

    The set of expected violations for this matcher.

Type Members

  1. final class AndBeWord extends AnyRef

    Definition Classes
    Matcher
  2. final class AndContainWord extends AnyRef

    Definition Classes
    Matcher
  3. final class AndEndWithWord extends AnyRef

    Definition Classes
    Matcher
  4. final class AndFullyMatchWord extends AnyRef

    Definition Classes
    Matcher
  5. final class AndHaveWord extends AnyRef

    Definition Classes
    Matcher
  6. final class AndIncludeWord extends AnyRef

    Definition Classes
    Matcher
  7. final class AndNotWord extends AnyRef

    Definition Classes
    Matcher
  8. final class AndStartWithWord extends AnyRef

    Definition Classes
    Matcher
  9. final class OrBeWord extends AnyRef

    Definition Classes
    Matcher
  10. final class OrContainWord extends AnyRef

    Definition Classes
    Matcher
  11. final class OrEndWithWord extends AnyRef

    Definition Classes
    Matcher
  12. final class OrFullyMatchWord extends AnyRef

    Definition Classes
    Matcher
  13. final class OrHaveWord extends AnyRef

    Definition Classes
    Matcher
  14. final class OrIncludeWord extends AnyRef

    Definition Classes
    Matcher
  15. final class OrNotWord extends AnyRef

    Definition Classes
    Matcher
  16. final class OrStartWithWord extends AnyRef

    Definition Classes
    Matcher

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. def and(notExist: ResultOfNotExist): MatcherFactory1[Result, Existence]

    Definition Classes
    Matcher
  5. def and(existWord: ExistWord): MatcherFactory1[Result, Existence]

    Definition Classes
    Matcher
  6. def and(notWord: NotWord): AndNotWord

    Definition Classes
    Matcher
  7. def and(endWithWord: EndWithWord): AndEndWithWord

    Definition Classes
    Matcher
  8. def and(startWithWord: StartWithWord): AndStartWithWord

    Definition Classes
    Matcher
  9. def and(includeWord: IncludeWord): AndIncludeWord

    Definition Classes
    Matcher
  10. def and(fullyMatchWord: FullyMatchWord): AndFullyMatchWord

    Definition Classes
    Matcher
  11. def and(beWord: BeWord): AndBeWord

    Definition Classes
    Matcher
  12. def and(containWord: ContainWord): AndContainWord

    Definition Classes
    Matcher
  13. def and(haveWord: HaveWord): AndHaveWord

    Definition Classes
    Matcher
  14. def and[U, TC1[_]](rightMatcherFactory1: MatcherFactory1[U, TC1]): MatcherFactory1[Result with U, TC1]

    Definition Classes
    Matcher
  15. def and[U <: Result](rightMatcher: Matcher[U]): Matcher[U]

    Definition Classes
    Matcher
  16. def andThen[A](g: (MatchResult) ⇒ A): (Result) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  17. def apply(left: Result): MatchResult

    Definition Classes
    ResultMatcher → Matcher → Function1
  18. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def compose[U](g: (U) ⇒ Result): Matcher[U]

    Definition Classes
    Matcher → Function1
  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. val expectedViolations: Set[(ResultMatchers.this)#ViolationMatcher]

    The set of expected violations for this matcher.

  23. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def mapArgs(prettify: (Any) ⇒ String): Matcher[Result]

    Definition Classes
    Matcher
  27. def mapResult(prettify: (MatchResult) ⇒ MatchResult): Matcher[Result]

    Definition Classes
    Matcher
  28. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  31. def or(notExist: ResultOfNotExist): MatcherFactory1[Result, Existence]

    Definition Classes
    Matcher
  32. def or(existWord: ExistWord): MatcherFactory1[Result, Existence]

    Definition Classes
    Matcher
  33. def or(notWord: NotWord): OrNotWord

    Definition Classes
    Matcher
  34. def or(endWithWord: EndWithWord): OrEndWithWord

    Definition Classes
    Matcher
  35. def or(startWithWord: StartWithWord): OrStartWithWord

    Definition Classes
    Matcher
  36. def or(includeWord: IncludeWord): OrIncludeWord

    Definition Classes
    Matcher
  37. def or(fullyMatchWord: FullyMatchWord): OrFullyMatchWord

    Definition Classes
    Matcher
  38. def or(beWord: BeWord): OrBeWord

    Definition Classes
    Matcher
  39. def or(containWord: ContainWord): OrContainWord

    Definition Classes
    Matcher
  40. def or(haveWord: HaveWord): OrHaveWord

    Definition Classes
    Matcher
  41. def or[U, TC1[_]](rightMatcherFactory1: MatcherFactory1[U, TC1]): MatcherFactory1[Result with U, TC1]

    Definition Classes
    Matcher
  42. def or[U <: Result](rightMatcher: Matcher[U]): Matcher[U]

    Definition Classes
    Matcher
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Matcher[Result]

Inherited from (Result) ⇒ MatchResult

Inherited from AnyRef

Inherited from Any

Ungrouped