|
ScalaTest 1.0
|
|
org/scalatest/matchers/Matchers.scala]
sealed
class
ResultOfNotWordForAnyRef[T <: AnyRef](left : T, shouldBeTrue : Boolean)
extends ResultOfNotWord[T]ShouldMatchers or MustMatchers for an overview of
the matchers DSL.| 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 |
map should not be (null)
^
def
be(symbol : scala.Symbol) : Unit
stack should not be ('empty)
^
def
be(bePropertyMatcher : BePropertyMatcher[T]) : Unit
stack is, for example, of type Stack and
empty refers to a BePropertyMatcher[Stack]:
stack should not be (empty)
^
def
be(resultOfAWordApplication : ResultOfAWordToSymbolApplication) : Unit
notFileMock should not be a ('file)
^
def
be[U >: T](resultOfAWordApplication : ResultOfAWordToBePropertyMatcherApplication[U]) : Unit
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
keyEvent should not be an ('actionKey)
^
def
be[U >: T](resultOfAnWordApplication : ResultOfAnWordToBePropertyMatcherApplication[U]) : Unit
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
otherString should not be theSameInstanceAs (string)
^
def
have[U >: T](firstPropertyMatcher : HavePropertyMatcher[U, Any], propertyMatchers : HavePropertyMatcher[U, Any]*) : Unit
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"))
^
|
ScalaTest 1.0
|
|