Matcher

org.specs2.matcher.Matcher$
See theMatcher companion trait
object Matcher

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Matcher.type

Members list

Value members

Concrete methods

def details(r: Result): Details

extract failure details from a Result if it is a Failure

extract failure details from a Result if it is a Failure

Attributes

def failure[T](message: => String, value: Expectable[T]): MatchResult[T]

This method can be used to create a failed match result

This method can be used to create a failed match result

Attributes

def result[T](test: Boolean, okMessage: => String, koMessage: => String, value: Expectable[T], trace: List[StackTraceElement], details: Details): MatchResult[T]

Attributes

Returns

a MatchResult[T] from a condition, 2 messages and details, and a trace when there is a failure

def result[T](test: Boolean, okMessage: => String, koMessage: => String, value: Expectable[T], details: Details): MatchResult[T]

Attributes

Returns

a MatchResult[T] from a condition, 2 messages and details

def result[T](test: Boolean, okMessage: => String, koMessage: => String, value: Expectable[T]): MatchResult[T]

Attributes

Returns

a MatchResult[T] from a condition and 2 messages

def result[T](test: Boolean, okMessage: => String, koMessage: => String, value: Expectable[T], expected: String, actual: String): MatchResult[T]

Attributes

Returns

a MatchResult[T] from a condition, 2 messages and expected/actual values

def result[T](r: Result, value: Expectable[T]): MatchResult[T]

Attributes

Returns

a MatchResult[T] from a result

def result[T](test: Boolean, message: => String, value: Expectable[T]): MatchResult[T]

Attributes

Returns

a MatchResult[T] from a condition and just one message

def success[T](message: => String, value: Expectable[T]): MatchResult[T]