org.scalatest.matchers.Matchers

class ResultOfNotWordForMap

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

final class ResultOfNotWordForMap[K, V](left : scala.collection.Map[K, V], shouldBeTrue : Boolean)
extends ResultOfNotWordForCollection[(K, V), scala.collection.Map[K, V]]
This class is part of the ScalaTest matchers DSL. Please see the documentation for ShouldMatchers or MustMatchers for an overview of the matchers DSL.
Author
Bill Venners
Method Summary
def contain (resultOfValueWordApplication : ResultOfValueWordApplication[V]) : Unit
This method enables the following syntax:
     Map("one" -> 1, "two" -> 2) should not contain value (3)
                                            ^
     
def contain (resultOfKeyWordApplication : ResultOfKeyWordApplication[K]) : Unit
This method enables the following syntax:
     map should not contain key ("three")
                    ^
     
Methods inherited from ResultOfNotWordForCollection
have
Methods inherited from ResultOfNotWordForIterable
contain
Methods inherited from ResultOfNotWordForAnyRef
be, be, be, be, be, be, be, be, have
Methods inherited from ResultOfNotWord
equal, be, be, be, be, be, be, be
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 contain(resultOfKeyWordApplication : ResultOfKeyWordApplication[K]) : Unit
This method enables the following syntax:
     map should not contain key ("three")
                    ^
     

def contain(resultOfValueWordApplication : ResultOfValueWordApplication[V]) : Unit
This method enables the following syntax:
     Map("one" -> 1, "two" -> 2) should not contain value (3)
                                            ^
     


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