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
- Alphabetic
- By Inheritance
- MatchSuccess
- Serializable
- Product
- Equals
- MatchResult
- ResultLike
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- MatchSuccess → MatchResult
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def be[S >: T <: AnyRef](s: S): MatchResult[S]
- Definition Classes
- MatchResult
- def be(m: Matcher[T]): MatchResult[T]
apply the matcher
apply the matcher
- Definition Classes
- MatchResult
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def evaluate[S >: T]: MatchResult[S]
the value being matched
the value being matched
- Attributes
- protected[specs2]
- Definition Classes
- MatchResult
- val expectable: Expectable[T]
the value being matched
the value being matched
- Definition Classes
- MatchSuccess → MatchResult
- 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
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def have(m: Matcher[T]): MatchResult[T]
apply the matcher
apply the matcher
- Definition Classes
- MatchResult
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSuccess: Boolean
- Definition Classes
- MatchResult
- val ko: () => String
- lazy val koMessage: String
- def message: String
- Definition Classes
- MatchResult
- def mute: MatchSuccess[T]
- returns
the MatchResult with no messages
- Definition Classes
- MatchSuccess → MatchResult
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def negate: MatchResult[T]
- returns
the negation of this result
- Definition Classes
- MatchSuccess → MatchResult
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val ok: () => String
- lazy val okMessage: String
- def orSkip: MatchResult[T]
- Definition Classes
- MatchResult
- def orThrow: MatchResult[T]
- Definition Classes
- MatchResult
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def setExpectable[S >: T](e: Expectable[S]): MatchResult[S]
set a different expectable for this matcher
set a different expectable for this matcher
- Definition Classes
- MatchSuccess → MatchResult
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toResult: Success
- Definition Classes
- MatchSuccess → MatchResult → ResultLike
- 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
- MatchSuccess → MatchResult
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()