org.scalatest.matchers.Matchers

class ResultOfNotWordForAnyRef

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

sealed class ResultOfNotWordForAnyRef[T <: AnyRef](left : T, shouldBeTrue : Boolean)
extends ResultOfNotWord[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.ResultOfNotWordForIterable, Matchers.ResultOfNotWordForJavaCollection, Matchers.ResultOfNotWordForJavaMap, Matchers.ResultOfNotWordForArray, Matchers.ResultOfNotWordForString, Matchers.ResultOfNotWordForSizeWrapper, Matchers.ResultOfNotWordForLengthWrapper

Method Summary
def be (resultOfAWordApplication : ResultOfAWordToSymbolApplication) : Unit
This method enables the following syntax:
     notFileMock should not be a ('file)
                            ^
     
def be (symbol : scala.Symbol) : Unit
This method enables the following syntax:
     stack should not be ('empty)
                      ^
     
def be [U >: T](resultOfAWordApplication : ResultOfAWordToBePropertyMatcherApplication[U]) : Unit
This method enables the following syntax, where notFileMock is, for example, of type File and file refers to a BePropertyMatcher[File]:
     notFileMock should not be a (file)
                            ^
     
def be [U >: T](resultOfAnWordApplication : ResultOfAnWordToBePropertyMatcherApplication[U]) : Unit
This method enables the following syntax, where keyEvent is, for example, of type KeyEvent and actionKey refers to a BePropertyMatcher[KeyEvent]:
     keyEvent should not be an (actionKey)
                         ^
     
def be (resultOfSameInstanceAsApplication : ResultOfTheSameInstanceAsApplication) : Unit
This method enables the following syntax:
     otherString should not be theSameInstanceAs (string)
                            ^
     
def be (o : Null) : Unit
This method enables the following syntax:
     map should not be (null)
                    ^
     
def be (bePropertyMatcher : BePropertyMatcher[T]) : Unit
This method enables the following syntax, where stack is, for example, of type Stack and empty refers to a BePropertyMatcher[Stack]:
     stack should not be (empty)
                          ^
     
def be (resultOfAnWordApplication : ResultOfAnWordToSymbolApplication) : Unit
This method enables the following syntax:
     keyEvent should not be an ('actionKey)
                         ^
     
def have [U >: T](firstPropertyMatcher : HavePropertyMatcher[U, Any], propertyMatchers : HavePropertyMatcher[U, Any]*) : Unit
This method enables the following syntax, where badBook is, for example, of type Book and title ("One Hundred Years of Solitude") results in a HavePropertyMatcher[Book]:
     book should not have (title ("One Hundred Years of Solitude"))
                     ^
     
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 be(o : Null) : Unit
This method enables the following syntax:
     map should not be (null)
                    ^
     

def be(symbol : scala.Symbol) : Unit
This method enables the following syntax:
     stack should not be ('empty)
                      ^
     

def be(bePropertyMatcher : BePropertyMatcher[T]) : Unit
This method enables the following syntax, where stack is, for example, of type Stack and empty refers to a BePropertyMatcher[Stack]:
     stack should not be (empty)
                          ^
     

def be(resultOfAWordApplication : ResultOfAWordToSymbolApplication) : Unit
This method enables the following syntax:
     notFileMock should not be a ('file)
                            ^
     

def be[U >: T](resultOfAWordApplication : ResultOfAWordToBePropertyMatcherApplication[U]) : Unit
This method enables the following syntax, where notFileMock is, for example, of type File and file refers to a BePropertyMatcher[File]:
     notFileMock should not be a (file)
                            ^
     

def be(resultOfAnWordApplication : ResultOfAnWordToSymbolApplication) : Unit
This method enables the following syntax:
     keyEvent should not be an ('actionKey)
                         ^
     

def be[U >: T](resultOfAnWordApplication : ResultOfAnWordToBePropertyMatcherApplication[U]) : Unit
This method enables the following syntax, where keyEvent is, for example, of type KeyEvent and actionKey refers to a BePropertyMatcher[KeyEvent]:
     keyEvent should not be an (actionKey)
                         ^
     

def be(resultOfSameInstanceAsApplication : ResultOfTheSameInstanceAsApplication) : Unit
This method enables the following syntax:
     otherString should not be theSameInstanceAs (string)
                            ^
     

def have[U >: T](firstPropertyMatcher : HavePropertyMatcher[U, Any], propertyMatchers : HavePropertyMatcher[U, Any]*) : Unit
This method enables the following syntax, where badBook is, for example, of type Book and title ("One Hundred Years of Solitude") results in a HavePropertyMatcher[Book]:
     book should not have (title ("One Hundred Years of Solitude"))
                     ^
     


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