org.scalatest.matchers.Matchers

class ResultOfNotWordForJavaCollection

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

sealed class ResultOfNotWordForJavaCollection[E, T <: java.util.Collection[E]](left : T, shouldBeTrue : Boolean)
extends ResultOfNotWordForAnyRef[T]
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
Direct Known Subclasses:
Matchers.ResultOfNotWordForJavaList

Method Summary
def contain (expectedElement : E) : Unit
This method enables the following syntax:
     javaCollection should not contain ("elephant")
                               ^
     
def have (resultOfSizeWordApplication : ResultOfSizeWordApplication) : Unit
This method enables the following syntax:
     javaCollection should not have size (3)
                               ^
     
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 have(resultOfSizeWordApplication : ResultOfSizeWordApplication) : Unit
This method enables the following syntax:
     javaCollection should not have size (3)
                               ^
     

def contain(expectedElement : E) : Unit
This method enables the following syntax:
     javaCollection should not contain ("elephant")
                               ^
     


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