org.scalatest.matchers.Matchers.MatcherWrapper

class OrHaveWord

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

final class OrHaveWord
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.
Author
Bill Venners
Method Summary
def length (expectedLength : Long) : Matcher[T with AnyRef]
This method enables the following syntax:
       Array(1, 2) should (have length (2) and have length (3 - 1))
                                                    ^
       
def size (expectedSize : Long) : Matcher[T with AnyRef]
This method enables the following syntax:
       Array(1, 2) should (have size (2) and have size (3 - 1))
                                             ^
       
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 length(expectedLength : Long) : Matcher[T with AnyRef]
This method enables the following syntax:
       Array(1, 2) should (have length (2) and have length (3 - 1))
                                                    ^
       

def size(expectedSize : Long) : Matcher[T with AnyRef]
This method enables the following syntax:
       Array(1, 2) should (have size (2) and have size (3 - 1))
                                             ^
       


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