MapMatchers

org.specs2.matcher.MapMatchers
See theMapMatchers companion object
trait MapMatchers

Matchers for Maps

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MapMatchers.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
Show all

Members list

Type members

Inherited classlikes

class MapKeyResultMatcher[K](result: MatchResult[Iterable[(K, Any)]])

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class MapResultMatcher[K, V](result: MatchResult[Iterable[(K, V)]])

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class MapValueResultMatcher[V](result: MatchResult[Iterable[(Any, V)]])

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class PartialFunctionResultMatcher[K, V](result: MatchResult[PartialFunction[K, V]])

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def be: NeutralMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def beDefinedAt[K](values: K*): Matcher[PartialFunction[K, Any]]

matches if the partial function is defined at those values

matches if the partial function is defined at those values

Attributes

Inherited from:
MapBaseMatchers (hidden)
def beDefinedBy[K, V](values: (K, V)*): Matcher[PartialFunction[K, V]]

matches if the partial function is defined at those values and return expected values

matches if the partial function is defined at those values and return expected values

Attributes

Inherited from:
MapBaseMatchers (hidden)
def definedAt[K](values: K*): Matcher[PartialFunction[K, Any]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def definedBy[K, V](values: (K, V)*): Matcher[PartialFunction[K, Any]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def have: NeutralMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def haveKey[K](k: K): Matcher[Iterable[(Any, Any)]]

matches if map.contains(k)

matches if map.contains(k)

Attributes

Inherited from:
MapBaseMatchers (hidden)
def haveKeys[K](keys: K*): Matcher[Iterable[(K, Any)]]

matches if map.contains(k) forall key k

matches if map.contains(k) forall key k

Attributes

Inherited from:
MapBaseMatchers (hidden)
def havePair[K, V](p: (K, V)): Matcher[Iterable[(Any, Any)]]

matches if map contains a pair (key, value) == (k, v)

matches if map contains a pair (key, value) == (k, v)

Attributes

Inherited from:
MapBaseMatchers (hidden)
def havePairs[K, V](pairs: (K, V)*): Matcher[Iterable[(K, V)]]

matches if map contains all the specified pairs

matches if map contains all the specified pairs

Attributes

Inherited from:
MapBaseMatchers (hidden)
def haveValue[V](v: V): Matcher[Iterable[(Any, Any)]]

matches if map contains a pair (key, value) with value == v

matches if map contains a pair (key, value) with value == v

Attributes

Inherited from:
MapBaseMatchers (hidden)
def haveValues[V](values: V*): Matcher[Iterable[(Any, V)]]

matches if map contains a pair (key, value) with value == v for all value v

matches if map contains a pair (key, value) with value == v for all value v

Attributes

Inherited from:
MapBaseMatchers (hidden)
def key[K](k: K): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def keys[K](ks: K*): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def not: NotMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def pair[K, V](p: (K, V)): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def pairs[K, V](pairs: (K, V)*): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def value[V](v: V): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
def values[V](vs: V*): Matcher[Iterable[(Any, Any)]]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)

Implicits

Inherited implicits

implicit def toMapKeyResultMatcher[K](result: MatchResult[Iterable[(K, Any)]]): MapKeyResultMatcher[K]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
implicit def toMapResultMatcher[K, V](result: MatchResult[Iterable[(K, V)]]): MapResultMatcher[K, V]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
implicit def toMapValueResultMatcher[V](result: MatchResult[Iterable[(Any, V)]]): MapValueResultMatcher[V]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)
implicit def toPartialFunctionResultMatcher[K, V](result: MatchResult[PartialFunction[K, V]]): PartialFunctionResultMatcher[K, V]

Attributes

Inherited from:
MapBeHaveMatchers (hidden)