NeutralMatch

org.specs2.matcher.NeutralMatch
case class NeutralMatch[T] extends MatchResult[T]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(matcher: Matcher[T]): MatchResult[T]

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

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

Attributes

override def evaluate[S >: T]: MatchResult[S]

the value being matched

the value being matched

Attributes

Definition Classes

Attributes

Returns

the negation of this result

def setExpectable[S >: T](e: Expectable[S]): MatchResult[S]

set a different expectable for this matcher

set a different expectable for this matcher

Attributes

Inherited methods

alias for the apply method, to be used outside specs2

alias for the apply method, to be used outside specs2

Attributes

Inherited from:
MatchResult
def be[S >: T <: AnyRef](s: S): MatchResult[S]

Attributes

Inherited from:
MatchResult
def be(m: Matcher[T]): MatchResult[T]

apply the matcher

apply the matcher

Attributes

Inherited from:
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)

Attributes

Inherited from:
MatchResult
def have(m: Matcher[T]): MatchResult[T]

apply the matcher

apply the matcher

Attributes

Inherited from:
MatchResult
def isSuccess: Boolean

Attributes

Inherited from:
MatchResult
def message: String

Attributes

Inherited from:
MatchResult
def mute: MatchResult[T]

Attributes

Returns

the MatchResult with no messages

Inherited from:
MatchResult

Attributes

Inherited from:
MatchResult

Attributes

Inherited from:
MatchResult
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def setMessage(message: String): MatchResult[T]

set a new failure message on this match result

set a new failure message on this match result

Attributes

Inherited from:
MatchResult
def toResult: Result

Attributes

Inherited from:
MatchResult
def updateMessage(f: String => String): MatchResult[T]

update the failure message of this match result

update the failure message of this match result

Attributes

Inherited from:
MatchResult

Concrete fields

the value being matched

the value being matched

Attributes