org.scalatest.matchers.Matchers

class ResultOfNotWord

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

sealed class ResultOfNotWord[T](left : T, shouldBeTrue : Boolean)
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
Direct Known Subclasses:
Matchers.ResultOfNotWordForAnyRef, Matchers.ResultOfNotWordForDouble, Matchers.ResultOfNotWordForFloat, Matchers.ResultOfNotWordForLong, Matchers.ResultOfNotWordForInt, Matchers.ResultOfNotWordForShort, Matchers.ResultOfNotWordForByte

Method Summary
def be (right : Any) : Unit
This method enables the following syntax:
     result should not be (7)
                       ^
     
def be (comparison : ResultOfGreaterThanComparison[T]) : Unit
This method enables the following syntax:
     result should not be > (7)
                       ^
     
def be (comparison : ResultOfLessThanOrEqualToComparison[T]) : Unit
This method enables the following syntax:
     result should not be <= (7)
                       ^
     
def be (comparison : ResultOfLessThanComparison[T]) : Unit
This method enables the following syntax:
     result should not be < (7)
                       ^
     
def be (beMatcher : BeMatcher[T]) : Unit
This method enables the following syntax, where odd refers to a BeMatcher[Int]:
     2 should not be (odd)
                  ^
     
def be (comparison : ResultOfGreaterThanOrEqualToComparison[T]) : Unit
This method enables the following syntax:
     result should not be >= (7)
                       ^
     
def be (comparison : ResultOfTripleEqualsApplication) : Unit
This method enables the following syntax:
     result should not be === (7)
                       ^
     
def equal (right : Any) : Unit
This method enables the following syntax:
     result should not equal (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(right : Any) : Unit
This method enables the following syntax:
     result should not equal (7)
                       ^
     

def be(right : Any) : Unit
This method enables the following syntax:
     result should not be (7)
                       ^
     

def be(comparison : ResultOfLessThanOrEqualToComparison[T]) : Unit
This method enables the following syntax:
     result should not be <= (7)
                       ^
     

def be(comparison : ResultOfGreaterThanOrEqualToComparison[T]) : Unit
This method enables the following syntax:
     result should not be >= (7)
                       ^
     

def be(comparison : ResultOfLessThanComparison[T]) : Unit
This method enables the following syntax:
     result should not be < (7)
                       ^
     

def be(comparison : ResultOfGreaterThanComparison[T]) : Unit
This method enables the following syntax:
     result should not be > (7)
                       ^
     

def be(comparison : ResultOfTripleEqualsApplication) : Unit
This method enables the following syntax:
     result should not be === (7)
                       ^
     

def be(beMatcher : BeMatcher[T]) : Unit
This method enables the following syntax, where odd refers to a BeMatcher[Int]:
     2 should not be (odd)
                  ^
     


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