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

def be(any: Any): MatcherFactory7[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not be (3 - 1)
                       ^
def be[U](resultOfLessThanComparison: ResultOfLessThanComparison[U]): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not be < (6)
                       ^
def be(o: Null): MatcherFactory7[SC & AnyRef, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not be (null)
                       ^
def be[U](resultOfGreaterThanComparison: ResultOfGreaterThanComparison[U]): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory (8) and not be > (6)
                           ^
def be[U](resultOfLessThanOrEqualToComparison: ResultOfLessThanOrEqualToComparison[U]): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not be <= (2)
                       ^
def be[U](resultOfGreaterThanOrEqualToComparison: ResultOfGreaterThanOrEqualToComparison[U]): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not be >= (6)
                       ^
def be(tripleEqualsInvocation: TripleEqualsInvocation[_]): MatcherFactory7[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

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.

def be[U](beMatcher: BeMatcher[U]): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

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

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

aMatcherFactory and not be (odd)
                       ^
def be[U](bePropertyMatcher: BePropertyMatcher[U]): MatcherFactory7[SC & AnyRef & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

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

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

aMatcherFactory and not be (directory)
                       ^
def be[U](resultOfAWordApplication: ResultOfAWordToAMatcherApplication[U]): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

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

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

aMatcherFactory and not be a (validMarks)
                       ^
def be[U <: AnyRef](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U]): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

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

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

aMatcherFactory and not be a (directory)
                       ^
def be[SC <: AnyRef](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[SC]): MatcherFactory7[SC & SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

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

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

aMatcherFactory and not be an (apple)
                       ^
def be[U](resultOfAnWordApplication: ResultOfAnWordToAnMatcherApplication[U]): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

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

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

aMatcherFactory and not be an (invalidMarks)
                       ^
inline def be(aType: ResultOfATypeInvocation[_]): MatcherFactory7[SC & AnyRef, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not be a [Book]
                       ^
inline def be(anType: ResultOfAnTypeInvocation[_]): MatcherFactory7[SC & AnyRef, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not be an [Apple]
                       ^
def be(resultOfTheSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication): MatcherFactory7[SC & AnyRef, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not be theSameInstanceAs (otherString)
                       ^
def be[U](spread: Spread[U]): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

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)
                       ^
def be[A, U <: PartialFunction[A, _]](resultOfDefinedAt: ResultOfDefinedAt[A]): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

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)
                       ^
def be(sortedWord: SortedWord): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Sortable]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not be sorted
                       ^
def be(readableWord: ReadableWord): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Readability]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not be readable
                       ^
def be(writableWord: WritableWord): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Writability]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not be writable
                       ^
def be(emptyWord: EmptyWord): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Emptiness]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not be empty
                       ^
def be(definedWord: DefinedWord): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Definition]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not be defined
                       ^
def contain[U](expectedElement: U): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Containing]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain (3)
                       ^
def contain(resultOfKeyWordApplication: ResultOfKeyWordApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, KeyMapping]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain key ("three")
                       ^
def contain(resultOfValueWordApplication: ResultOfValueWordApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, ValueMapping]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain value (3)
                       ^
def contain(right: ResultOfOneOfApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Containing]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain oneOf (8, 1, 2)
                       ^
def contain(right: ResultOfOneElementOfApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Containing]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain oneElementOf (List(8, 1, 2))
                       ^
def contain(right: ResultOfAtLeastOneOfApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Aggregating]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain atLeastOneOf (8, 1, 2)
                       ^
def contain(right: ResultOfAtLeastOneElementOfApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Aggregating]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain atLeastOneOf (8, 1, 2)
                       ^
def contain(right: ResultOfNoneOfApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Containing]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain noneOf (8, 1, 2)
                       ^
def contain(right: ResultOfNoElementsOfApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Containing]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain noElementsOf (8, 1, 2)
                       ^
def contain(right: ResultOfTheSameElementsAsApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Aggregating]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain theSameElementsAs (List(8, 1, 2))
                       ^
def contain(right: ResultOfTheSameElementsInOrderAsApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Sequencing]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain theSameElementsInOrderAs (List(8, 1, 2))
                       ^
def contain(right: ResultOfOnlyApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Aggregating]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain only (8, 1, 2)
                       ^
def contain(right: ResultOfInOrderOnlyApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Sequencing]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain inOrderOnly (8, 1, 2)
                       ^
def contain(right: ResultOfAllOfApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Aggregating]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain allOf (8, 1, 2)
                       ^
def contain(right: ResultOfAllElementsOfApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Aggregating]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain allElementsOf (8, 1, 2)
                       ^
def contain(right: ResultOfInOrderApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Sequencing]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain inOrder (8, 1, 2)
                       ^
def contain(right: ResultOfInOrderElementsOfApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Sequencing]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain inOrder (8, 1, 2)
                       ^
def contain(right: ResultOfAtMostOneOfApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Aggregating]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain atMostOneOf (8, 1, 2)
                       ^
def contain(right: ResultOfAtMostOneElementOfApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Aggregating]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not contain atMostOneElementOf (List(8, 1, 2))
                       ^
def endWith(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory7[SC & String, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not endWith regex (decimal)
                       ^
def endWith(expectedSubstring: String): MatcherFactory7[SC & String, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not endWith ("1.7")
                       ^
def equal(any: Any): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Equality]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not equal (3 - 1)
                       ^
def equal[U](spread: Spread[U]): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

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)
                       ^
def equal(o: Null): MatcherFactory7[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not equal (null)
                       ^
def fullyMatch(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory7[SC & String, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not fullyMatch regex (decimal)
                       ^
def have(resultOfLengthWordApplication: ResultOfLengthWordApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Length]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not have length (3)
                       ^
def have(resultOfSizeWordApplication: ResultOfSizeWordApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Size]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not have size (3)
                       ^
def have(resultOfMessageWordApplication: ResultOfMessageWordApplication): MatcherFactory8[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7, Messaging]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not have message ("Message from Mars!")
                       ^
def have[U](firstPropertyMatcher: HavePropertyMatcher[U, _], propertyMatchers: HavePropertyMatcher[U, _]*): MatcherFactory7[SC & U, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not have (author ("Melville"))
                       ^
def include(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory7[SC & String, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not include regex (decimal)
                       ^
def include(expectedSubstring: String): MatcherFactory7[SC & String, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not include ("1.7")
                       ^
inline def matchPattern(inline right: PartialFunction[Any, _]): MatcherFactory7[SC & AnyRef, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory and not matchPattern { case Person("Bob", _) =>}
                       ^
def startWith(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory7[SC & String, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not startWith regex (decimal)
                       ^
def startWith(expectedSubstring: String): MatcherFactory7[SC & String, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

This method enables the following syntax given a MatcherFactory7:

This method enables the following syntax given a MatcherFactory7:

aMatcherFactory and not startWith ("1.7")
                       ^

Concrete fields

val owner: MatcherFactory7[SC, TC1, TC2, TC3, TC4, TC5, TC6, TC7]

Get the MatcherFactory instance, currently used by macro only.

Get the MatcherFactory instance, currently used by macro only.