ValueMapping

org.scalatest.enablers.ValueMapping
See theValueMapping companion object
trait ValueMapping[-M]

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.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def containsValue(map: M, value: Any): Boolean

Check if the passed map contains the passed value.

Check if the passed map contains the passed value.

Value parameters

map

a map about which an assertion is being made

value

value of which should be contained in the passed map

Attributes

Returns

true if the passed map contains the passed value