AndNotWord

final class AndNotWord(prettifier: Prettifier, 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(any: Any): MatcherFactory2[SC, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not be (3 - 1)
                       ^
infix def be[U](resultOfLessThanComparison: ResultOfLessThanComparison[U]): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not be < (6)
                       ^
infix def be(o: Null): MatcherFactory2[SC & AnyRef, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not be (null)
                       ^
infix def be[U](resultOfGreaterThanComparison: ResultOfGreaterThanComparison[U]): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory (8) and not be > (6)
                           ^
infix def be[U](resultOfLessThanOrEqualToComparison: ResultOfLessThanOrEqualToComparison[U]): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not be <= (2)
                       ^
infix def be[U](resultOfGreaterThanOrEqualToComparison: ResultOfGreaterThanOrEqualToComparison[U]): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not be >= (6)
                       ^
infix def be(tripleEqualsInvocation: TripleEqualsInvocation[_]): MatcherFactory2[SC, TC1, TC2]

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 should be === syntax has expired, and the syntax may no longer be used. 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.

infix def be[U](beMatcher: BeMatcher[U]): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax given a MatcherFactory2, where odd is a BeMatcher:

This method enables the following syntax given a MatcherFactory2, where odd is a BeMatcher:

aMatcherFactory and not be (odd)
                       ^
infix def be[U](bePropertyMatcher: BePropertyMatcher[U]): MatcherFactory2[SC & AnyRef & U, TC1, TC2]

This method enables the following syntax given a MatcherFactory2, where directory is a BePropertyMatcher:

This method enables the following syntax given a MatcherFactory2, where directory is a BePropertyMatcher:

aMatcherFactory and not be (directory)
                       ^
infix def be[U](resultOfAWordApplication: ResultOfAWordToAMatcherApplication[U]): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax given a MatcherFactory2, where validMarks is an AMatcher:

This method enables the following syntax given a MatcherFactory2, where validMarks is an AMatcher:

aMatcherFactory and not be a (validMarks)
                       ^
infix def be[U <: AnyRef](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U]): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax given a MatcherFactory2, where directory is a BePropertyMatcher:

This method enables the following syntax given a MatcherFactory2, where directory is a BePropertyMatcher:

aMatcherFactory and not be a (directory)
                       ^
infix def be[SC <: AnyRef](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[SC]): MatcherFactory2[SC & SC, TC1, TC2]

This method enables the following syntax given a MatcherFactory2, where apple is a BePropertyMatcher:

This method enables the following syntax given a MatcherFactory2, where apple is a BePropertyMatcher:

aMatcherFactory and not be an (apple)
                       ^
infix def be[U](resultOfAnWordApplication: ResultOfAnWordToAnMatcherApplication[U]): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax given a MatcherFactory2, where invalidMarks is a AnMatcher:

This method enables the following syntax given a MatcherFactory2, where invalidMarks is a AnMatcher:

aMatcherFactory and not be an (invalidMarks)
                       ^
infix inline def be(aType: ResultOfATypeInvocation[_]): MatcherFactory2[SC & AnyRef, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not be a [Book]
                       ^
infix inline def be(anType: ResultOfAnTypeInvocation[_]): MatcherFactory2[SC & AnyRef, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not be an [Apple]
                       ^
infix def be(resultOfTheSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication): MatcherFactory2[SC & AnyRef, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not be theSameInstanceAs (otherString)
                       ^
infix def be[U](spread: Spread[U]): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax, for the "primitive" numeric types:

This method enables the following syntax, for the "primitive" numeric types:

aMatcherFactory and not be (17.0 +- 0.2)
                       ^
infix def be[A, U <: PartialFunction[A, _]](resultOfDefinedAt: ResultOfDefinedAt[A]): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax, where fraction is a PartialFunction:

This method enables the following syntax, where fraction is a PartialFunction:

aMatcherFactory and not be definedAt (8)
                       ^
infix def be(sortedWord: SortedWord): MatcherFactory3[SC, TC1, TC2, Sortable]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not be sorted
                       ^
infix def be(readableWord: ReadableWord): MatcherFactory3[SC, TC1, TC2, Readability]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not be readable
                       ^
infix def be(writableWord: WritableWord): MatcherFactory3[SC, TC1, TC2, Writability]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not be writable
                       ^
infix def be(emptyWord: EmptyWord): MatcherFactory3[SC, TC1, TC2, Emptiness]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not be empty
                       ^
infix def be(definedWord: DefinedWord): MatcherFactory3[SC, TC1, TC2, Definition]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not be defined
                       ^
infix def contain[U](expectedElement: U): MatcherFactory3[SC, TC1, TC2, Containing]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain (3)
                       ^
infix def contain(resultOfKeyWordApplication: ResultOfKeyWordApplication): MatcherFactory3[SC, TC1, TC2, KeyMapping]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain key ("three")
                       ^
infix def contain(resultOfValueWordApplication: ResultOfValueWordApplication): MatcherFactory3[SC, TC1, TC2, ValueMapping]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain value (3)
                       ^
infix def contain(right: ResultOfOneOfApplication): MatcherFactory3[SC, TC1, TC2, Containing]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain oneOf (8, 1, 2)
                       ^
infix def contain(right: ResultOfOneElementOfApplication): MatcherFactory3[SC, TC1, TC2, Containing]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain oneElementOf (List(8, 1, 2))
                       ^
infix def contain(right: ResultOfAtLeastOneOfApplication): MatcherFactory3[SC, TC1, TC2, Aggregating]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain atLeastOneOf (8, 1, 2)
                       ^
infix def contain(right: ResultOfAtLeastOneElementOfApplication): MatcherFactory3[SC, TC1, TC2, Aggregating]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain atLeastOneOf (8, 1, 2)
                       ^
infix def contain(right: ResultOfNoneOfApplication): MatcherFactory3[SC, TC1, TC2, Containing]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain noneOf (8, 1, 2)
                       ^
infix def contain(right: ResultOfNoElementsOfApplication): MatcherFactory3[SC, TC1, TC2, Containing]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain noElementsOf (8, 1, 2)
                       ^
infix def contain(right: ResultOfTheSameElementsAsApplication): MatcherFactory3[SC, TC1, TC2, Aggregating]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain theSameElementsAs (List(8, 1, 2))
                       ^
infix def contain(right: ResultOfTheSameElementsInOrderAsApplication): MatcherFactory3[SC, TC1, TC2, Sequencing]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain theSameElementsInOrderAs (List(8, 1, 2))
                       ^
infix def contain(right: ResultOfOnlyApplication): MatcherFactory3[SC, TC1, TC2, Aggregating]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain only (8, 1, 2)
                       ^
infix def contain(right: ResultOfInOrderOnlyApplication): MatcherFactory3[SC, TC1, TC2, Sequencing]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain inOrderOnly (8, 1, 2)
                       ^
infix def contain(right: ResultOfAllOfApplication): MatcherFactory3[SC, TC1, TC2, Aggregating]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain allOf (8, 1, 2)
                       ^
infix def contain(right: ResultOfAllElementsOfApplication): MatcherFactory3[SC, TC1, TC2, Aggregating]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain allElementsOf (8, 1, 2)
                       ^
infix def contain(right: ResultOfInOrderApplication): MatcherFactory3[SC, TC1, TC2, Sequencing]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain inOrder (8, 1, 2)
                       ^
infix def contain(right: ResultOfInOrderElementsOfApplication): MatcherFactory3[SC, TC1, TC2, Sequencing]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain inOrder (8, 1, 2)
                       ^
infix def contain(right: ResultOfAtMostOneOfApplication): MatcherFactory3[SC, TC1, TC2, Aggregating]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain atMostOneOf (8, 1, 2)
                       ^
infix def contain(right: ResultOfAtMostOneElementOfApplication): MatcherFactory3[SC, TC1, TC2, Aggregating]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not contain atMostOneElementOf (List(8, 1, 2))
                       ^
infix def endWith(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory2[SC & String, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not endWith regex (decimal)
                       ^
infix def endWith(expectedSubstring: String): MatcherFactory2[SC & String, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not endWith ("1.7")
                       ^
infix def equal(any: Any): MatcherFactory3[SC, TC1, TC2, Equality]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not equal (3 - 1)
                       ^
infix def equal[U](spread: Spread[U]): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax, for the "primitive" numeric types:

This method enables the following syntax, for the "primitive" numeric types:

aMatcherFactory and not equal (17.0 +- 0.2)
                       ^
infix def equal(o: Null): MatcherFactory2[SC, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not equal (null)
                       ^
infix def fullyMatch(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory2[SC & String, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not fullyMatch regex (decimal)
                       ^
infix def have(resultOfLengthWordApplication: ResultOfLengthWordApplication): MatcherFactory3[SC, TC1, TC2, Length]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not have length (3)
                       ^
infix def have(resultOfSizeWordApplication: ResultOfSizeWordApplication): MatcherFactory3[SC, TC1, TC2, Size]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not have size (3)
                       ^
infix def have(resultOfMessageWordApplication: ResultOfMessageWordApplication): MatcherFactory3[SC, TC1, TC2, Messaging]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not have message ("Message from Mars!")
                       ^
infix def have[U](firstPropertyMatcher: HavePropertyMatcher[U, _], propertyMatchers: HavePropertyMatcher[U, _]*): MatcherFactory2[SC & U, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not have (author ("Melville"))
                       ^
infix def include(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory2[SC & String, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not include regex (decimal)
                       ^
infix def include(expectedSubstring: String): MatcherFactory2[SC & String, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not include ("1.7")
                       ^
infix inline def matchPattern(inline right: PartialFunction[Any, _]): MatcherFactory2[SC & AnyRef, TC1, TC2]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not matchPattern { case Person("Bob", _) =>}
                       ^
infix def startWith(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory2[SC & String, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not startWith regex (decimal)
                       ^
infix def startWith(expectedSubstring: String): MatcherFactory2[SC & String, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory and not startWith ("1.7")
                       ^

Concrete fields

val owner: MatcherFactory2[SC, TC1, TC2]

Get the MatcherFactory instance, currently used by macro only.

Get the MatcherFactory instance, currently used by macro only.