org.specs2.matcher

MatchSuccess

Related Docs: object MatchSuccess | package matcher

case class MatchSuccess[T] extends MatchResult[T] with Product with Serializable

The signature of this class constructor is unusual, with a useless implicit parameter.

This is actually here to avoid overloading conflicts with the apply method in the companion object

Linear Supertypes
Serializable, Serializable, Product, Equals, MatchResult[T], ResultLike, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MatchSuccess
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MatchResult
  7. ResultLike
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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 apply(matcher: Matcher[T]): MatchResult[T]

    apply a Matcher to the expectable contained in that MatchResult.

    apply a Matcher to the expectable contained in that MatchResult. Depending on the exact type of the MatchResult, that logic may vary.

    Note: this method is marked as "private" to give a clue to the user when semi-column inference fails to apply.

    For example in that case:

    "string" must not beNull 1 must_== 1

    There will be a compilation error as if the apply method was used between the first and second line: ("string" must not beNull).apply(1)

    For a more detailed explanation, see: http://bit.ly/12STc95

    Definition Classes
    MatchSuccessMatchResult
  5. def applyMatcher(m: Matcher[T]): MatchResult[T]

    alias for the apply method, to be used outside specs2

    alias for the apply method, to be used outside specs2

    Definition Classes
    MatchResult
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def be[S >: T <: AnyRef](s: S): MatchResult[T]

    Definition Classes
    MatchResult
  8. def be(m: Matcher[T]): MatchResult[T]

    apply the matcher

    apply the matcher

    Definition Classes
    MatchResult
  9. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  11. def evaluate[S >: T]: MatchResult[S]

    the value being matched

    the value being matched

    Attributes
    protected[org.specs2]
    Definition Classes
    MatchResult
  12. val expectable: Expectable[T]

    the value being matched

    the value being matched

    Definition Classes
    MatchSuccessMatchResult
  13. def filterTrace(f: (List[StackTraceElement]) ⇒ List[StackTraceElement]): MatchResult[T]

    filter the trace of this result (if there is one)

    filter the trace of this result (if there is one)

    Definition Classes
    MatchResult
  14. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  16. def have(m: Matcher[T]): MatchResult[T]

    apply the matcher

    apply the matcher

    Definition Classes
    MatchResult
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def isSuccess: Boolean

    Definition Classes
    MatchResult
  19. val ko: () ⇒ String

  20. lazy val koMessage: String

  21. def message: String

    Definition Classes
    MatchResult
  22. def mute: MatchSuccess[T]

    returns

    the MatchResult with no messages

    Definition Classes
    MatchSuccessMatchResult
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def negate: MatchResult[T]

    returns

    the negation of this result

    Definition Classes
    MatchSuccessMatchResult
  25. final def notify(): Unit

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

    Definition Classes
    AnyRef
  27. val ok: () ⇒ String

  28. lazy val okMessage: String

  29. def orSkip: MatchResult[T]

    Definition Classes
    MatchResult
  30. def orThrow: MatchResult[T]

    Definition Classes
    MatchResult
  31. def setMessage(message: String): MatchResult[T]

    set a new failure message on this match result

    set a new failure message on this match result

    Definition Classes
    MatchResult
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toResult: Success

    Definition Classes
    MatchSuccessMatchResultResultLike
  34. def updateMessage(f: (String) ⇒ String): MatchSuccess[T]

    update the failure message of this match result

    update the failure message of this match result

    Definition Classes
    MatchSuccessMatchResult
  35. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. 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 MatchResult[T]

Inherited from ResultLike

Inherited from AnyRef

Inherited from Any

Ungrouped