org.scalatest.matchers.Matchers.MatcherWrapper

class OrBeWord

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

final class OrBeWord
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 a [T](bePropertyMatcher : BePropertyMatcher[T]) : Matcher[T with AnyRef with T]
This method enables the following syntax:
       isFileMock should (be a (file) or be a (directory))
                                            ^
       
def a (symbol : scala.Symbol) : Matcher[T with AnyRef]
This method enables the following syntax:
       isFileMock should (be a ('file) or be a ('directory))
                                             ^
       
def an (symbol : scala.Symbol) : Matcher[T with AnyRef]
This method enables the following syntax:
       appleMock should (be an ('orange) or be an ('apple))
                                               ^
       
def an [T](bePropertyMatcher : BePropertyMatcher[T]) : Matcher[T with AnyRef with T]
This method enables the following syntax:
       appleMock should (be an (orange) or be an (apple))
                                              ^
       
def theSameInstanceAs (anyRef : AnyRef) : Matcher[T with AnyRef]
This method enables the following syntax:
       obj should (be theSameInstanceAs (string) or be theSameInstanceAs (otherString))
                                                       ^
       
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 a(symbol : scala.Symbol) : Matcher[T with AnyRef]
This method enables the following syntax:
       isFileMock should (be a ('file) or be a ('directory))
                                             ^
       

def a[T](bePropertyMatcher : BePropertyMatcher[T]) : Matcher[T with AnyRef with T]
This method enables the following syntax:
       isFileMock should (be a (file) or be a (directory))
                                            ^
       

def an(symbol : scala.Symbol) : Matcher[T with AnyRef]
This method enables the following syntax:
       appleMock should (be an ('orange) or be an ('apple))
                                               ^
       

def an[T](bePropertyMatcher : BePropertyMatcher[T]) : Matcher[T with AnyRef with T]
This method enables the following syntax:
       appleMock should (be an (orange) or be an (apple))
                                              ^
       

def theSameInstanceAs(anyRef : AnyRef) : Matcher[T with AnyRef]
This method enables the following syntax:
       obj should (be theSameInstanceAs (string) or be theSameInstanceAs (otherString))
                                                       ^
       


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