org.specs.matcher.MapMatchers

trait MapMatchers

trait MapMatchers

 extends ScalaObject


The MapMatchers trait provides matchers which are applicable to Map objects
It currently accepts any Iterable[(K, V)] whereas it should only accept Map[K, V]. This is because the implicit defs in the SpecificationStructure trait are picking up iterables in general


Source: MapMatchers.scala(10)

Direct Known Subclasses

Matchers,

 Methods

!= final def !=(arg0 : Any) Boolean Any
!= final def !=(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Any) Boolean Any
asInstanceOf final def asInstanceOf[T0] T0 Any
beDefinedAt def beDefinedAt[A](values : A*)
Matches if the partial function is defined at those values
Matcher[PartialFunction[A, Any]]
beDefinedBy def beDefinedBy[A, B](values : (A, B)*)
Matches if the partial function is defined at those values and return expected values
Matcher[PartialFunction[A, B]]
clone protected def clone Object AnyRef
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
finalize protected def finalize Unit AnyRef
getClass final def getClass Class[Object] AnyRef
hashCode def hashCode Int AnyRef
haveKey def haveKey[S](k : S)
Matches if map [details]
contains(k)
Matcher[Iterable[(S, Any)]]
havePair def havePair[S, T](p : (S, T))
Matches if map contains a pair (key, value) == (k, v)
Matcher[Iterable[(S, T)]]
havePairs def havePairs[S, T](pairs : (S, T)*)
Matches if map contains all the specified pairs
Matcher[Iterable[(S, T)]]
haveValue def haveValue[S](v : S)
Matches if map contains a pair (key, value) with value == v
Matcher[Iterable[(Any, S)]]
isInstanceOf final def isInstanceOf[T0] Boolean Any
ne final def ne(arg0 : Object) Boolean AnyRef
notHaveKey def notHaveKey[S](k : S)
Matches if not(map [details]
contains(k))
Matcher[Iterable[(S, Any)]]
notHavePair def notHavePair[S, T](p : (S, T))
Matches if map doesn't contain a pair (key, value) == (k, v)
Matcher[Iterable[(S, T)]]
notHavePairs def notHavePairs[S, T](pairs : (S, T)*)
Matches if map doesn't contain the specified pairs
Matcher[Iterable[(S, T)]]
notHaveValue def notHaveValue[S](v : S)
Matches if map doesn't contain a pair (key, value) with value == v
Matcher[Iterable[(Any, S)]]
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString def toString String AnyRef
wait final def wait Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2007-2009. All Rights Reserved.