org.specs2.matcher

BeEqualTo

class BeEqualTo extends BeTypedEqualTo[Any]

Equality Matcher

Linear Supertypes
BeTypedEqualTo[Any], AdaptableMatcher[Any], Matcher[Any], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. BeEqualTo
  2. BeTypedEqualTo
  3. AdaptableMatcher
  4. Matcher
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BeEqualTo (t: ⇒ Any)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

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

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def ^^ (f: (Any) ⇒ Any): AdaptableMatcher[Any]

    Adapts a matcher by changing the actual value before doing the match ex: be_==("message") ^^ (_.trim) will do the comparison on a trimmed String before match

    Adapts a matcher by changing the actual value before doing the match ex: be_==("message") ^^ (_.trim) will do the comparison on a trimmed String before match

    Definition Classes
    AdaptableMatcher
  7. def ^^ [S] (f: (S) ⇒ Any): Matcher[S]

    Adapt a matcher to another.

    Adapt a matcher to another. ex: be_==("message") ^^ (_.getMessage) can be applied to an exception

    Definition Classes
    Matcher
  8. def ^^^ (f: (Any) ⇒ Any, ok: (String) ⇒ String = identity, ko: (String) ⇒ String = identity): AdaptableMatcher[Any]

    Adapt a matcher with both the expected and actual values ex: be_==("message") ^^^ (_.trim) will do the comparison on both trimmed strings

    Adapt a matcher with both the expected and actual values ex: be_==("message") ^^^ (_.trim) will do the comparison on both trimmed strings

    Definition Classes
    AdaptableMatcher
  9. def adapt (f: (Any) ⇒ Any, okFunction: (String) ⇒ String, koFunction: (String) ⇒ String): AdaptableMatcher[Any]

    returns

    a matcher changing its expected value and possibly adding more information to the ok and ko messages

    Definition Classes
    BeTypedEqualTo → AdaptableMatcher
  10. def and [S <: Any] (m: ⇒ Matcher[S]): Matcher[S]

    the logical and between 2 matchers

    the logical and between 2 matchers

    Definition Classes
    Matcher
    See also

    MatchResult.and

  11. def apply [S <: Any] (b: Expectable[S]): MatchResult[S]

    apply this matcher to an Expectable

    apply this matcher to an Expectable

    returns

    a MatchResult describing the outcome of the match

    Definition Classes
    BeTypedEqualTo → Matcher
  12. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  13. def atLeastOnce : Matcher[Traversable[Any]]

    returns

    a Matcher matching at least one element of a sequence against the current matcher

    Definition Classes
    Matcher
  14. def clone (): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  17. def eventually (retries: Int, sleep: Duration): Matcher[Any]

    returns

    a matcher that needs to eventually match, after a given number of retries and a sleep time

    Definition Classes
    Matcher
  18. def eventually : Matcher[Any]

    returns

    a matcher that needs to eventually match, after 40 retries and a sleep time of 100 milliseconds

    Definition Classes
    Matcher
  19. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. def forall : Matcher[Traversable[Any]]

    returns

    a Matcher matching all the elements of a sequence against the current matcher, stopping after the first failure

    Definition Classes
    Matcher
  21. def foreach : Matcher[Traversable[Any]]

    returns

    a Matcher matching all the elements of a sequence against the current matcher, cumulating all failures

    Definition Classes
    Matcher
  22. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  23. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  24. def iff (b: Boolean, m: String = ""): Matcher[Any]

    when the condition is true the matcher is applied, when it's false, the matcher must fail

    when the condition is true the matcher is applied, when it's false, the matcher must fail

    Definition Classes
    Matcher
  25. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  26. val ko : (String) ⇒ String

    Attributes
    protected
    Definition Classes
    BeTypedEqualTo
  27. def lazily : Matcher[() ⇒ Any]

    The lazily operator returns a Matcher which will match a function returning the expected value

    The lazily operator returns a Matcher which will match a function returning the expected value

    Definition Classes
    Matcher
  28. def mute : Matcher[Any]

    returns

    a Matcher with no messages

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

    Attributes
    final
    Definition Classes
    AnyRef
  30. def not : Matcher[Any]

    negate a Matcher

    negate a Matcher

    Definition Classes
    Matcher
    See also

    MatchResult.not

  31. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  32. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  33. val ok : (String) ⇒ String

    Attributes
    protected
    Definition Classes
    BeTypedEqualTo
  34. def or [S <: Any] (m: ⇒ Matcher[S]): Matcher[S]

    the logical or between 2 matchers

    the logical or between 2 matchers

    Definition Classes
    Matcher
    See also

    MatchResult.or

  35. def orSkip (m: String): Matcher[Any]

    returns

    a Skip MatchResult if this matcher fails, prefixing the failure message with a skip message. If the skip message is empty, only the failure message is printed

    Definition Classes
    Matcher
  36. def orSkip : Matcher[Any]

    returns

    a Skip MatchResult if this matcher fails

    Definition Classes
    Matcher
  37. def result [S <: Any] (other: MatchResultMessage, value: Expectable[S]): MatchResult[S]

    returns

    a MatchResult using the messages embedded in a MatchResultMessage (i.e. an accumulation of messages from other matches)

    Attributes
    protected
    Definition Classes
    Matcher
  38. def result [S <: Any] (other: org.specs2.matcher.MatchResult[_], value: Expectable[S]): MatchResult[S]

    returns

    a MatchResult copied on another one, but with a different expectable

    Attributes
    protected
    Definition Classes
    Matcher
  39. def result [S <: Any] (test: ⇒ Boolean, okMessage: ⇒ String, koMessage: ⇒ String, value: Expectable[S], expected: String, actual: String): MatchResult[S]

    This convenience method can be used to evaluate a boolean condition and return an appropriate MatchResult

    This convenience method can be used to evaluate a boolean condition and return an appropriate MatchResult

    returns

    a MatchResult with an okMessage, a koMessage, the expectable value and the expected/actual values as string to display a failure comparison if necessary

    Attributes
    protected
    Definition Classes
    Matcher
  40. def result [S <: Any] (test: ⇒ Boolean, okMessage: ⇒ String, koMessage: ⇒ String, value: Expectable[S]): MatchResult[S]

    This convenience method can be used to evaluate a boolean condition and return an appropriate MatchResult

    This convenience method can be used to evaluate a boolean condition and return an appropriate MatchResult

    returns

    a MatchResult with an okMessage, a koMessage and the expectable value

    Attributes
    protected
    Definition Classes
    Matcher
  41. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  42. def toString (): String

    Definition Classes
    AnyRef → Any
  43. def unless (b: Boolean, m: String = ""): Matcher[Any]

    only apply this matcher if the condition is false

    only apply this matcher if the condition is false

    Definition Classes
    Matcher
  44. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  47. def when (b: Boolean, m: String = ""): Matcher[Any]

    only apply this matcher if the condition is true

    only apply this matcher if the condition is true

    Definition Classes
    Matcher

Inherited from BeTypedEqualTo[Any]

Inherited from AdaptableMatcher[Any]

Inherited from Matcher[Any]

Inherited from AnyRef

Inherited from Any