Hamcrest

org.specs2.matcher.Hamcrest
See theHamcrest companion object
trait Hamcrest

This trait adds implicit conversions to be able to use Hamcrest matchers as specs2 matchers.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Hamcrest

Members list

Value members

Concrete methods

def createKoMessageFromHamcrest[T](t: => T, hamcrest: Matcher[T]): String

Attributes

Returns

a string showing the matched value and the failure message from the Hamcrest matcher

Givens

Givens

given given_Conversion_Matcher_Matcher[T]: given_Conversion_Matcher_Matcher[T]

convert a Hamcrest matcher to a specs2 matcher

convert a Hamcrest matcher to a specs2 matcher

Attributes