org.scalatest.matchers

MatchResult

object MatchResult extends Serializable

Companion object for the MatchResult case class.

Source
MatchResult.scala
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MatchResult
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, failureMessageArgs: IndexedSeq[Any], negatedFailureMessageArgs: IndexedSeq[Any]): MatchResult

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage, failureMessageArgs and negatedFailureMessageArgs fields.

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage, failureMessageArgs and negatedFailureMessageArgs fields. The rawMidSentenceFailureMessage will return the same string as rawFailureMessage, and the rawMidSentenceNegatedFailureMessage will return the same string as rawNegatedFailureMessage. The midSentenceFailureMessageArgs will return the same as failureMessageArgs, and the midSentenceNegatedFailureMessageArgs will return the same as negatedFailureMessageArgs. This is suitable to create MatchResult with lazy error messages that have same mid-sentence and use different arguments for negated messages.

    matches

    indicates whether or not the matcher matched

    rawFailureMessage

    raw failure message to report if a match fails

    rawNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    failureMessageArgs

    arguments for constructing failure message to report if a match fails

    negatedFailureMessageArgs

    arguments for constructing message with a meaning opposite to that of the failure message

    returns

    a MatchResult instance

  7. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, args: IndexedSeq[Any]): MatchResult

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage and args fields.

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage and args fields. The rawMidSentenceFailureMessage will return the same string as rawFailureMessage, and the rawMidSentenceNegatedFailureMessage will return the same string as rawNegatedFailureMessage. All argument fields will use args as arguments. This is suitable to create MatchResult with lazy error messages that have same mid-sentence messages and arguments.

    matches

    indicates whether or not the matcher matched

    rawFailureMessage

    raw failure message to report if a match fails

    rawNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    args

    arguments for error messages construction

    returns

    a MatchResult instance

  8. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String): MatchResult

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, and rawNegativeFailureMessage fields.

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, and rawNegativeFailureMessage fields. The rawMidSentenceFailureMessage will return the same string as rawFailureMessage, and the rawMidSentenceNegatedFailureMessage will return the same string as rawNegatedFailureMessage. All argument fields will have Vector.empty values. This is suitable to create MatchResult with eager error messages that have same mid-sentence messages.

    matches

    indicates whether or not the matcher matched

    rawFailureMessage

    raw failure message to report if a match fails

    rawNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    returns

    a MatchResult instance

  9. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, rawMidSentenceFailureMessage: String, rawMidSentenceNegatedFailureMessage: String): MatchResult

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage, rawMidSentenceFailureMessage, and rawMidSentenceNegatedFailureMessage fields.

    Factory method that constructs a new MatchResult with passed matches, rawFailureMessage, rawNegativeFailureMessage, rawMidSentenceFailureMessage, and rawMidSentenceNegatedFailureMessage fields. All argument fields will have Vector.empty values. This is suitable to create MatchResult with eager error messages, and its mid-sentence messages need to be different.

    matches

    indicates whether or not the matcher matched

    rawFailureMessage

    raw failure message to report if a match fails

    rawNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    rawMidSentenceFailureMessage

    raw failure message to report if a match fails

    rawMidSentenceNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    returns

    a MatchResult instance

  10. def apply(matches: Boolean, rawFailureMessage: String, rawNegatedFailureMessage: String, rawMidSentenceFailureMessage: String, rawMidSentenceNegatedFailureMessage: String, failureMessageArgs: IndexedSeq[Any], negatedFailureMessageArgs: IndexedSeq[Any]): MatchResult

    Factory method that constructs a new MatchResult with passed matches, failureMessage, negativeFailureMessage, midSentenceFailureMessage, midSentenceNegatedFailureMessage, failureMessageArgs, and negatedFailureMessageArgs fields.

    Factory method that constructs a new MatchResult with passed matches, failureMessage, negativeFailureMessage, midSentenceFailureMessage, midSentenceNegatedFailureMessage, failureMessageArgs, and negatedFailureMessageArgs fields. failureMessageArgs, and negatedFailureMessageArgs will be used in place of midSentenceFailureMessageArgs and midSentenceNegatedFailureMessageArgs.

    matches

    indicates whether or not the matcher matched

    rawFailureMessage

    raw failure message to report if a match fails

    rawNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    rawMidSentenceFailureMessage

    raw failure message to report if a match fails

    rawMidSentenceNegatedFailureMessage

    raw message with a meaning opposite to that of the failure message

    failureMessageArgs

    arguments for constructing failure message to report if a match fails

    negatedFailureMessageArgs

    arguments for constructing message with a meaning opposite to that of the failure message

    returns

    a MatchResult instance

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

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

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

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

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

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

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

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped