ResultOfNotWordForAny

final class ResultOfNotWordForAny[T](val left: T, val shouldBeTrue: Boolean, val prettifier: Prettifier, val pos: Position)

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

class Object
trait Matchable
class Any

Value members

Concrete methods

infix def be(right: Any): Assertion

This method enables the following syntax:

This method enables the following syntax:

result should not be (7)
                 ^
infix def be(comparison: ResultOfLessThanOrEqualToComparison[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

result should not be <= (7)
                 ^
infix def be(comparison: ResultOfGreaterThanOrEqualToComparison[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

result should not be >= (7)
                 ^
infix def be(comparison: ResultOfLessThanComparison[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

result should not be < (7)
                 ^
infix def be(comparison: ResultOfGreaterThanComparison[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

result should not be > (7)
                 ^
infix def be(beMatcher: BeMatcher[T]): Assertion

This method enables the following syntax, where odd refers to a BeMatcher[Int]:

This method enables the following syntax, where odd refers to a BeMatcher[Int]:

2 should not be (odd)
            ^
infix def be(resultOfAWordToAMatcherApplication: ResultOfAWordToAMatcherApplication[T]): Assertion

This method enables the following syntax, where positiveNumber refers to an AMatcher[Int]:

This method enables the following syntax, where positiveNumber refers to an AMatcher[Int]:

2 should not be a (positiveNumber)
            ^
infix def be(resultOfAnWordToAnMatcherApplication: ResultOfAnWordToAnMatcherApplication[T]): Assertion

This method enables the following syntax, where oddNumber refers to an AnMatcher[Int]:

This method enables the following syntax, where oddNumber refers to an AnMatcher[Int]:

2 should not be an (oddNumber)
            ^
infix inline def be(aType: ResultOfATypeInvocation[_]): Assertion

This method enables the following syntax:

This method enables the following syntax:

result should not be a [Book]
                 ^
infix inline def be(anType: ResultOfAnTypeInvocation[_]): Assertion

This method enables the following syntax:

This method enables the following syntax:

result should not be a [Book]
                 ^
infix def be(spread: Spread[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

sevenDotOh should not be (6.5 +- 0.2)
                     ^
infix def be[U](resultOfDefinedAt: ResultOfDefinedAt[U])(implicit ev: T <:< PartialFunction[U, _]): Assertion

This method enables the following syntax:

This method enables the following syntax:

partialFun should not be definedAt ("apple")
                     ^
infix def be(o: Null)(implicit ev: T <:< AnyRef): Assertion

This method enables the following syntax:

This method enables the following syntax:

map should not be (null)
              ^
infix def be(symbol: Symbol)(implicit toAnyRef: T <:< AnyRef, prettifier: Prettifier, pos: Position): Assertion

This method enables the following syntax:

This method enables the following syntax:

stack should not be ('empty)
                ^
infix def be(bePropertyMatcher: BePropertyMatcher[T])(implicit ev: T <:< AnyRef): Assertion

This method enables the following syntax, where stack is, for example, of type Stack and empty refers to a BePropertyMatcher[Stack]:

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)
                    ^
infix def be(resultOfAWordApplication: ResultOfAWordToSymbolApplication)(implicit toAnyRef: T <:< AnyRef, prettifier: Prettifier, pos: Position): Assertion

This method enables the following syntax:

This method enables the following syntax:

notFileMock should not be a ('file)
                      ^
infix def be[U >: T](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U])(implicit ev: T <:< AnyRef): Assertion

This method enables the following syntax, where notFileMock is, for example, of type File and file refers to a BePropertyMatcher[File]:

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)
                      ^
infix def be(resultOfAnWordApplication: ResultOfAnWordToSymbolApplication)(implicit toAnyRef: T <:< AnyRef, prettifier: Prettifier, pos: Position): Assertion

This method enables the following syntax:

This method enables the following syntax:

keyEvent should not be an ('actionKey)
                   ^
infix def be[U >: T](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[U])(implicit ev: T <:< AnyRef): Assertion

This method enables the following syntax, where keyEvent is, for example, of type KeyEvent and actionKey refers to a BePropertyMatcher[KeyEvent]:

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)
                   ^
infix def be(resultOfSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication)(implicit toAnyRef: T <:< AnyRef): Assertion

This method enables the following syntax:

This method enables the following syntax:

otherString should not be theSameInstanceAs (string)
                      ^
infix def be[U](sortedWord: SortedWord)(implicit sortable: Sortable[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

xs should not be sorted
                ^
infix def be[U](readableWord: ReadableWord)(implicit readability: Readability[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

file should not be readable
                  ^
infix def be[U](writableWord: WritableWord)(implicit writability: Writability[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

file should not be writable
                  ^
infix def be[U](emptyWord: EmptyWord)(implicit emptiness: Emptiness[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

list should not be empty
                  ^
infix def be[U](definedWord: DefinedWord)(implicit definition: Definition[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

option should not be defined
                    ^
infix def contain(nullValue: Null)(implicit containing: Containing[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

object should not contain (null)
                 ^
infix def contain(expectedElement: Any)(implicit containing: Containing[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

object should not contain ("one")
                 ^
infix def contain(newOneOf: ResultOfOneOfApplication)(implicit containing: Containing[T]): Assertion
infix def contain(oneElementOf: ResultOfOneElementOfApplication)(implicit evidence: Containing[T]): Assertion
infix def contain(atLeastOneOf: ResultOfAtLeastOneOfApplication)(implicit aggregating: Aggregating[T]): Assertion
infix def contain(atLeastOneElementOf: ResultOfAtLeastOneElementOfApplication)(implicit aggregating: Aggregating[T]): Assertion
infix def contain(noneOf: ResultOfNoneOfApplication)(implicit containing: Containing[T]): Assertion
infix def contain(noElementsOf: ResultOfNoElementsOfApplication)(implicit containing: Containing[T]): Assertion
infix def contain(theSameElementsAs: ResultOfTheSameElementsAsApplication)(implicit aggregating: Aggregating[T]): Assertion
infix def contain(theSameElementsInOrderAs: ResultOfTheSameElementsInOrderAsApplication)(implicit sequencing: Sequencing[T]): Assertion
infix def contain(only: ResultOfOnlyApplication)(implicit aggregating: Aggregating[T]): Assertion
infix def contain(only: ResultOfInOrderOnlyApplication)(implicit sequencing: Sequencing[T]): Assertion
infix def contain(allOf: ResultOfAllOfApplication)(implicit aggregating: Aggregating[T]): Assertion
infix def contain(allElementsOf: ResultOfAllElementsOfApplication)(implicit aggregating: Aggregating[T]): Assertion
infix def contain(only: ResultOfInOrderApplication)(implicit sequencing: Sequencing[T]): Assertion
infix def contain(only: ResultOfInOrderElementsOfApplication)(implicit sequencing: Sequencing[T]): Assertion
infix def contain(atMostOneOf: ResultOfAtMostOneOfApplication)(implicit aggregating: Aggregating[T]): Assertion
infix def contain(atMostOneElementOf: ResultOfAtMostOneElementOfApplication)(implicit aggregating: Aggregating[T]): Assertion
infix def contain(resultOfKeyWordApplication: ResultOfKeyWordApplication)(implicit keyMapping: KeyMapping[T]): Assertion
infix def contain(resultOfValueWordApplication: ResultOfValueWordApplication)(implicit valueMapping: ValueMapping[T]): Assertion
infix def endWith(resultOfRegexWordApplication: ResultOfRegexWordApplication)(implicit ev: T <:< String): Assertion

This method enables the following syntax:

This method enables the following syntax:

greeting should not endWith regex ("wor.d")
                   ^
infix def endWith(expectedSubstring: String)(implicit ev: T <:< String): Assertion

This method enables the following syntax:

This method enables the following syntax:

"eight" should not endWith ("1.7")
                  ^
infix def equal(right: Any)(implicit equality: Equality[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

result should not equal (7)
                 ^
infix def equal(spread: Spread[T]): Assertion

This method enables the following syntax:

This method enables the following syntax:

sevenDotOh should not equal (6.5 +- 0.2)
                     ^
infix def equal(right: Null): Assertion

This method enables the following syntax:

This method enables the following syntax:

result should not equal null
                 ^
infix def fullyMatch(resultOfRegexWordApplication: ResultOfRegexWordApplication)(implicit ev: T <:< String): Assertion

This method enables the following syntax:

This method enables the following syntax:

string should not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""")
                 ^

The regular expression passed following the regex token can be either a String or a scala.util.matching.Regex.

infix def have(resultOfLengthWordApplication: ResultOfLengthWordApplication)(implicit len: Length[T]): Assertion

Enables parentheses to be placed around length (N) in expressions of the form: should not have (length (N)).

Enables parentheses to be placed around length (N) in expressions of the form: should not have (length (N)).

infix def have(resultOfSizeWordApplication: ResultOfSizeWordApplication)(implicit sz: Size[T]): Assertion

Enables parentheses to be placed around size (N) in expressions of the form: should not have (size (N)).

Enables parentheses to be placed around size (N) in expressions of the form: should not have (size (N)).

infix def have(firstPropertyMatcher: HavePropertyMatcher[T, _], propertyMatchers: HavePropertyMatcher[T, _]*): Assertion

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]:

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"))
               ^
infix def have(resultOfMessageWordApplication: ResultOfMessageWordApplication)(implicit messaging: Messaging[T]): Assertion
infix def include(resultOfRegexWordApplication: ResultOfRegexWordApplication)(implicit ev: T <:< String): Assertion

This method enables the following syntax:

This method enables the following syntax:

string should not include regex ("wo.ld")
                 ^

The regular expression passed following the regex token can be either a String or a scala.util.matching.Regex.

infix def include(expectedSubstring: String)(implicit ev: T <:< String): Assertion

This method enables the following syntax:

This method enables the following syntax:

string should not include ("world")
                 ^
infix inline def matchPattern(inline right: PartialFunction[Any, _]): Unit

This method enables the following syntax:

This method enables the following syntax:

result should not matchPattern { case Person("Bob", _) => }
                 ^
infix def startWith(resultOfRegexWordApplication: ResultOfRegexWordApplication)(implicit ev: T <:< String): Assertion

This method enables the following syntax:

This method enables the following syntax:

string should not startWith regex ("Hel*o")
                 ^

The regular expression passed following the regex token can be either a String or a scala.util.matching.Regex.

infix def startWith(expectedSubstring: String)(implicit ev: T <:< String): Assertion

This method enables the following syntax:

This method enables the following syntax:

"eight" should not startWith ("1.7")
                  ^
override def toString: String

Overrides toString to return pretty text.

Overrides toString to return pretty text.

Definition Classes
Any

Deprecated methods

@deprecated("The deprecation period for the be === syntax has expired. Please use should equal, should ===, shouldEqual, should be, or shouldBe instead.")
infix def be(comparison: TripleEqualsInvocation[_]): Matcher[Any]

Note: usually syntax will be removed after its deprecation period. This was left in because otherwise the syntax could in some cases still compile, but silently wouldn't work.

The deprecation period for the "be ===" syntax has expired, and the syntax will now throw NotAllowedException. Please use should equal, should ===, shouldEqual, should be, or shouldBe instead.

Note: usually syntax will be removed after its deprecation period. This was left in because otherwise the syntax could in some cases still compile, but silently wouldn't work.

Deprecated

Concrete fields

val left: T
val pos: Position
val prettifier: Prettifier
val shouldBeTrue: Boolean