org.scalatest.matchers.ShouldMatchers

class MapShouldWrapper

[source: org/scalatest/matchers/ShouldMatchers.scala]

final class MapShouldWrapper[K, V](left : scala.collection.Map[K, V])
extends AnyRef
This class is part of the ScalaTest matchers DSL. Please see the documentation for ShouldMatchers or MustMatchers for an overview of the matchers DSL.

This class is used in conjunction with an implicit conversion to enable should methods to be invoked on objects of type scala.collection.Map[K, V].

Author
Bill Venners
Method Summary
def should (containWord : ContainWord) : ResultOfContainWordForMap[K, V]
This method enables syntax such as the following:
     map should contain key (10)
         ^
     
def should (notWord : NotWord) : ResultOfNotWordForMap[K, V]
This method enables syntax such as the following:
     map should not have size (3)
         ^
     
def should (beWord : BeWord) : ResultOfBeWordForAnyRef[scala.collection.Map[K, V]]
This method enables syntax such as the following:
     map should be theSameInstanceAs (anotherMap)
         ^
     
def should (rightMatcher : Matcher[scala.collection.Map[K, V]]) : Unit
This method enables syntax such as the following:
     map should equal (Map(1 -> "one", 2 -> "two"))
         ^
     
def should (haveWord : HaveWord) : ResultOfHaveWordForCollection[(K, V)]
This method enables syntax such as the following:
     map should have size (3)
         ^
     
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def should(rightMatcher : Matcher[scala.collection.Map[K, V]]) : Unit
This method enables syntax such as the following:
     map should equal (Map(1 -> "one", 2 -> "two"))
         ^
     

def should(beWord : BeWord) : ResultOfBeWordForAnyRef[scala.collection.Map[K, V]]
This method enables syntax such as the following:
     map should be theSameInstanceAs (anotherMap)
         ^
     

def should(haveWord : HaveWord) : ResultOfHaveWordForCollection[(K, V)]
This method enables syntax such as the following:
     map should have size (3)
         ^
     

def should(containWord : ContainWord) : ResultOfContainWordForMap[K, V]
This method enables syntax such as the following:
     map should contain key (10)
         ^
     

def should(notWord : NotWord) : ResultOfNotWordForMap[K, V]
This method enables syntax such as the following:
     map should not have size (3)
         ^
     


Copyright (C) 2001-2009 Artima, Inc. All rights reserved.