org.scalatest.matchers.Matchers.MatcherWrapper

class AndNotWord

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

final class AndNotWord
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 be [T](resultOfLessThanOrEqualToComparison : ResultOfLessThanOrEqualToComparison[T]) : Matcher[T with T]
This method enables the following syntax:
       2 should (not be <= (1) and not be <= (2))
                                       ^
       
def be [T](bePropertyMatcher : BePropertyMatcher[T]) : Matcher[T with AnyRef with T]
This method enables the following syntax:
       myFile should (not be (directory) and not be (directory))
                                                    ^
       
def be (any : Any) : Matcher[T]
This method enables the following syntax:
       1 should (not be (2) and not be (3 - 1))
                                    ^
       
def be [T <: AnyRef](resultOfAWordApplication : ResultOfAWordToBePropertyMatcherApplication[T]) : Matcher[T with T]
This method enables the following syntax:
       myFile should (not be a (directory) and not be a (directory))
                                                   ^
       
def be (resultOfAWordApplication : ResultOfAWordToSymbolApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
       isNotFileMock should (not be a ('file) and not be a ('file))
                                                      ^
       
def be [T](resultOfTheSameInstanceAsApplication : ResultOfTheSameInstanceAsApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
       obj should (not be theSameInstanceAs (otherString) and not be theSameInstanceAs (otherString))
                                                                  ^
       
def be (floatTolerance : FloatTolerance) : Matcher[T with Float]
This method enables the following syntax:
       sevenDotOhFloat should (not be (17.0f plusOrMinus 0.2f) and not be (17.0f plusOrMinus 0.2f))
                                                                       ^
       
def be (resultOfTripleEqualsApplication : ResultOfTripleEqualsApplication) : Matcher[T]
This method enables the following syntax:
       5 should (not be === (2) and not be === (6))
                                        ^
       
def be [T <: AnyRef](resultOfAnWordApplication : ResultOfAnWordToBePropertyMatcherApplication[T]) : Matcher[T with T]
This method enables the following syntax:
       myFile should (not be an (directory) and not be an (directory))
                                                    ^
       
def be [T](resultOfGreaterThanOrEqualToComparison : ResultOfGreaterThanOrEqualToComparison[T]) : Matcher[T with T]
This method enables the following syntax:
       7 should (not be >= (8) and not be >= (6))
                                       ^
       
def be [T](resultOfAnWordApplication : ResultOfAnWordToSymbolApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
       isNotAppleMock should (not be an ('apple) and not be an ('apple)) 
                                                         ^
       
def be [T](beMatcher : BeMatcher[T]) : Matcher[T with T]
This method enables the following syntax:
       2 should (not be (odd) and not be (odd))
                                      ^
       
def be (doubleTolerance : DoubleTolerance) : Matcher[T with Double]
This method enables the following syntax:
       sevenDotOh should (not be (17.0 plusOrMinus 0.2) and not be (17.0 plusOrMinus 0.2))
                                                                ^
       
def be [T](o : Null) : Matcher[T with AnyRef]
This method enables the following syntax:
       map should (contain key (7) and not be (null))
                                           ^
       
def be (shortTolerance : ShortTolerance) : Matcher[T with Short]
This method enables the following syntax:
       sevenShort should (not be (17.toShort plusOrMinus 2.toShort) and not be (17.toShort plusOrMinus 2.toShort))
                                                                            ^
       
def be (intTolerance : IntTolerance) : Matcher[T with Int]
This method enables the following syntax:
       sevenInt should (not be (17 plusOrMinus 2) and not be (17 plusOrMinus 2))
                                                          ^
       
def be [T](resultOfLessThanComparison : ResultOfLessThanComparison[T]) : Matcher[T with T]
This method enables the following syntax:
       5 should (not be < (2) and not be < (6))
                                      ^
       
def be (byteTolerance : ByteTolerance) : Matcher[T with Byte]
This method enables the following syntax:
       sevenByte should ((not be (19.toByte plusOrMinus 2.toByte)) and (not be (19.toByte plusOrMinus 2.toByte)))
                                                                            ^
       
def be (longTolerance : LongTolerance) : Matcher[T with Long]
This method enables the following syntax:
       sevenLong should (not be (17L plusOrMinus 2L) and not be (17L plusOrMinus 2L))
                                                             ^
       
def be [T](resultOfGreaterThanComparison : ResultOfGreaterThanComparison[T]) : Matcher[T with T]
This method enables the following syntax:
       7 should (not be > (8) and not be > (6))
                                      ^
       
def be (symbol : scala.Symbol) : Matcher[T with AnyRef]
This method enables the following syntax:
       notEmptyMock should (not be ('empty) and not be ('empty))
                                                    ^
       
def contain [T](expectedElement : T) : Matcher[T with scala.Iterable[T]]
This method enables the following syntax:
       Array(1, 2) should (not contain (5) and not contain (3))
                                                           ^
       
def contain [T](resultOfValueWordApplication : ResultOfValueWordApplication[T]) : Matcher[<NoSymbol>.<refinement>]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (not contain value (5) and not contain value (3))
                                                                         ^
       
def contain [T](resultOfKeyWordApplication : ResultOfKeyWordApplication[T]) : Matcher[T with scala.collection.Map[T, Any]]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (not contain key ("five") and not contain key ("three"))
                                                                            ^
       
def endWith (expectedSubstring : java.lang.String) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not endWith ("fre") and not endWith ("1.7"))
                                                  ^
       
def endWith (resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not endWith regex ("bob") and not endWith regex (decimal))
                                                        ^
       
def equal (any : Any) : Matcher[T]
This method enables the following syntax:
       1 should (not equal (2) and not equal (3 - 1))
                                       ^
       
def fullyMatch (resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not fullyMatch regex ("bob") and not fullyMatch regex (decimal))
                                                           ^
       
def have [T](firstPropertyMatcher : HavePropertyMatcher[T, Any], propertyMatchers : HavePropertyMatcher[T, Any]*) : Matcher[T with T]
This method enables the following syntax:
       book should (not have (title ("Moby Dick")) and not have (author ("Melville")))
                                                           ^
       
def have (resultOfLengthWordApplication : ResultOfLengthWordApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
       Array(1, 2) should (not have size (5) and not have length (3))
                                                     ^
       
def have (resultOfSizeWordApplication : ResultOfSizeWordApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
       Array(1, 2) should (not have size (5) and not have size (3))
                                                     ^
       
def include (expectedSubstring : java.lang.String) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not include ("bob") and not include ("1.7"))
                                                  ^
       
def include (resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not include regex ("bob") and not include regex (decimal))
                                                           ^
       
def startWith (resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not startWith regex ("bob") and not startWith regex (decimal))
                                                          ^
       
def startWith (expectedSubstring : java.lang.String) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not startWith ("red") and not startWith ("1.7"))
                                                    ^
       
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 equal(any : Any) : Matcher[T]
This method enables the following syntax:
       1 should (not equal (2) and not equal (3 - 1))
                                       ^
       

def be(any : Any) : Matcher[T]
This method enables the following syntax:
       1 should (not be (2) and not be (3 - 1))
                                    ^
       

def have(resultOfLengthWordApplication : ResultOfLengthWordApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
       Array(1, 2) should (not have size (5) and not have length (3))
                                                     ^
       

def have(resultOfSizeWordApplication : ResultOfSizeWordApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
       Array(1, 2) should (not have size (5) and not have size (3))
                                                     ^
       

def have[T](firstPropertyMatcher : HavePropertyMatcher[T, Any], propertyMatchers : HavePropertyMatcher[T, Any]*) : Matcher[T with T]
This method enables the following syntax:
       book should (not have (title ("Moby Dick")) and not have (author ("Melville")))
                                                           ^
       

def be[T](resultOfLessThanComparison : ResultOfLessThanComparison[T]) : Matcher[T with T]
This method enables the following syntax:
       5 should (not be < (2) and not be < (6))
                                      ^
       

def be[T](o : Null) : Matcher[T with AnyRef]
This method enables the following syntax:
       map should (contain key (7) and not be (null))
                                           ^
       

def be[T](resultOfGreaterThanComparison : ResultOfGreaterThanComparison[T]) : Matcher[T with T]
This method enables the following syntax:
       7 should (not be > (8) and not be > (6))
                                      ^
       

def be[T](resultOfLessThanOrEqualToComparison : ResultOfLessThanOrEqualToComparison[T]) : Matcher[T with T]
This method enables the following syntax:
       2 should (not be <= (1) and not be <= (2))
                                       ^
       

def be[T](resultOfGreaterThanOrEqualToComparison : ResultOfGreaterThanOrEqualToComparison[T]) : Matcher[T with T]
This method enables the following syntax:
       7 should (not be >= (8) and not be >= (6))
                                       ^
       

def be(resultOfTripleEqualsApplication : ResultOfTripleEqualsApplication) : Matcher[T]
This method enables the following syntax:
       5 should (not be === (2) and not be === (6))
                                        ^
       

def be(symbol : scala.Symbol) : Matcher[T with AnyRef]
This method enables the following syntax:
       notEmptyMock should (not be ('empty) and not be ('empty))
                                                    ^
       

def be[T](beMatcher : BeMatcher[T]) : Matcher[T with T]
This method enables the following syntax:
       2 should (not be (odd) and not be (odd))
                                      ^
       

def be[T](bePropertyMatcher : BePropertyMatcher[T]) : Matcher[T with AnyRef with T]
This method enables the following syntax:
       myFile should (not be (directory) and not be (directory))
                                                    ^
       

def be(resultOfAWordApplication : ResultOfAWordToSymbolApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
       isNotFileMock should (not be a ('file) and not be a ('file))
                                                      ^
       

def be[T <: AnyRef](resultOfAWordApplication : ResultOfAWordToBePropertyMatcherApplication[T]) : Matcher[T with T]
This method enables the following syntax:
       myFile should (not be a (directory) and not be a (directory))
                                                   ^
       

def be[T](resultOfAnWordApplication : ResultOfAnWordToSymbolApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
       isNotAppleMock should (not be an ('apple) and not be an ('apple)) 
                                                         ^
       

def be[T <: AnyRef](resultOfAnWordApplication : ResultOfAnWordToBePropertyMatcherApplication[T]) : Matcher[T with T]
This method enables the following syntax:
       myFile should (not be an (directory) and not be an (directory))
                                                    ^
       

def be[T](resultOfTheSameInstanceAsApplication : ResultOfTheSameInstanceAsApplication) : Matcher[T with AnyRef]
This method enables the following syntax:
       obj should (not be theSameInstanceAs (otherString) and not be theSameInstanceAs (otherString))
                                                                  ^
       

def be(doubleTolerance : DoubleTolerance) : Matcher[T with Double]
This method enables the following syntax:
       sevenDotOh should (not be (17.0 plusOrMinus 0.2) and not be (17.0 plusOrMinus 0.2))
                                                                ^
       

def be(floatTolerance : FloatTolerance) : Matcher[T with Float]
This method enables the following syntax:
       sevenDotOhFloat should (not be (17.0f plusOrMinus 0.2f) and not be (17.0f plusOrMinus 0.2f))
                                                                       ^
       

def be(longTolerance : LongTolerance) : Matcher[T with Long]
This method enables the following syntax:
       sevenLong should (not be (17L plusOrMinus 2L) and not be (17L plusOrMinus 2L))
                                                             ^
       

def be(intTolerance : IntTolerance) : Matcher[T with Int]
This method enables the following syntax:
       sevenInt should (not be (17 plusOrMinus 2) and not be (17 plusOrMinus 2))
                                                          ^
       

def be(shortTolerance : ShortTolerance) : Matcher[T with Short]
This method enables the following syntax:
       sevenShort should (not be (17.toShort plusOrMinus 2.toShort) and not be (17.toShort plusOrMinus 2.toShort))
                                                                            ^
       

def be(byteTolerance : ByteTolerance) : Matcher[T with Byte]
This method enables the following syntax:
       sevenByte should ((not be (19.toByte plusOrMinus 2.toByte)) and (not be (19.toByte plusOrMinus 2.toByte)))
                                                                            ^
       

def fullyMatch(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not fullyMatch regex ("bob") and not fullyMatch regex (decimal))
                                                           ^
       

def include(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not include regex ("bob") and not include regex (decimal))
                                                           ^
       

def include(expectedSubstring : java.lang.String) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not include ("bob") and not include ("1.7"))
                                                  ^
       

def startWith(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not startWith regex ("bob") and not startWith regex (decimal))
                                                          ^
       

def startWith(expectedSubstring : java.lang.String) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not startWith ("red") and not startWith ("1.7"))
                                                    ^
       

def endWith(resultOfRegexWordApplication : ResultOfRegexWordApplication) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not endWith regex ("bob") and not endWith regex (decimal))
                                                        ^
       

def endWith(expectedSubstring : java.lang.String) : Matcher[T with java.lang.String]
This method enables the following syntax:
       "fred" should (not endWith ("fre") and not endWith ("1.7"))
                                                  ^
       

def contain[T](expectedElement : T) : Matcher[T with scala.Iterable[T]]
This method enables the following syntax:
       Array(1, 2) should (not contain (5) and not contain (3))
                                                           ^
       

def contain[T](resultOfKeyWordApplication : ResultOfKeyWordApplication[T]) : Matcher[T with scala.collection.Map[T, Any]]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (not contain key ("five") and not contain key ("three"))
                                                                            ^
       

def contain[T](resultOfValueWordApplication : ResultOfValueWordApplication[T]) : Matcher[<NoSymbol>.<refinement>]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (not contain value (5) and not contain value (3))
                                                                         ^
       


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