Supertrait for typeclasses that enable contain value
matcher syntax.
A ValueMapping[M]
provides access to the "value mapping nature" of type M
in such
a way that contain
value
matcher syntax can be used with type M
. An M
can be any type for which contain
value
syntax makes sense. ScalaTest provides implicit implementations
for scala.collection.GenMap
and java.util.Map
. You can enable the contain
value
matcher syntax on your own type U
by defining a ValueMapping[U]
for the type and making it
available implicitly.
ScalaTest provides implicit ValueMapping
instances for scala.collection.GenMap
,
and java.util.Map
in the ValueMapping
companion object.
- Companion:
- object
class Object
trait Matchable
class Any