ScalaTest 1.0
|
|
final
class
JavaCollectionShouldWrapper[T](left : java.util.Collection[T])
extends
AnyRefShouldMatchers
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 java.util.Collection[T]
.
Method Summary | |
def
|
should
(haveWord : HaveWord) : ResultOfHaveWordForJavaCollection[T]
This method enables syntax such as the following:
javaCollection should have size (3) ^ |
def
|
should
(beWord : BeWord) : ResultOfBeWordForAnyRef[java.util.Collection[T]]
This method enables syntax such as the following:
javaCollection should be theSameInstanceAs anotherObject ^ |
def
|
should
(notWord : NotWord) : ResultOfNotWordForJavaCollection[T, java.util.Collection[T]]
This method enables syntax such as the following:
javaCollection should not have size (3) ^ |
def
|
should
(rightMatcher : Matcher[java.util.Collection[T]]) : Unit
This method enables syntax such as the following:
javaCollection should equal (aJavaSet) ^ |
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[java.util.Collection[T]]) : Unit
javaCollection should equal (aJavaSet) ^
def
should(haveWord : HaveWord) : ResultOfHaveWordForJavaCollection[T]
javaCollection should have size (3) ^
def
should(beWord : BeWord) : ResultOfBeWordForAnyRef[java.util.Collection[T]]
javaCollection should be theSameInstanceAs anotherObject ^
def
should(notWord : NotWord) : ResultOfNotWordForJavaCollection[T, java.util.Collection[T]]
javaCollection should not have size (3) ^
ScalaTest 1.0
|
|