OrNotWord

final class OrNotWord(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): MatcherFactory2[SC, TC1, TC2]

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory or not be (2)
                      ^
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 or not be (null)
                      ^
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 or not be < (8)
                      ^
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 or not be > (6)
                      ^
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 or not be <= (2)
                      ^
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 or not be >= (6)
                      ^
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 "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.

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 or not be (odd)
                      ^
def be[U](bePropertyMatcher: BePropertyMatcher[U]): MatcherFactory2[SC & AnyRef & U, TC1, TC2]

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

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

aMatcherFactory or not be (file)
                      ^
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 or not be a (validMarks)
                      ^
def be[U <: AnyRef](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U]): MatcherFactory2[SC & U, TC1, TC2]

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

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

aMatcherFactory or not be a (file)
                      ^
def be[U <: AnyRef](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[U]): MatcherFactory2[SC & U, 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 or not be an (apple)
                      ^
def be[U](resultOfAnWordApplication: ResultOfAnWordToAnMatcherApplication[U]): MatcherFactory2[SC & U, TC1, TC2]

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

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

aMatcherFactory and not be an (invalidMarks)
                       ^
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 or not be a [Book]
                      ^
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 or not be an [Apple]
                      ^
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 or not be theSameInstanceAs (string)
                      ^
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 or not be (17.0 +- 0.2)
                      ^
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 or not be definedAt (8)
                      ^
def be(sortedWord: SortedWord): MatcherFactory3[SC, TC1, TC2, Sortable]

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

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

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

This method enables the following syntax:

This method enables the following syntax:

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

This method enables the following syntax:

This method enables the following syntax:

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

This method enables the following syntax:

This method enables the following syntax:

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

This method enables the following syntax:

This method enables the following syntax:

aMatcherFactory or not be defined
                      ^
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 or not contain (3)
                      ^
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 or not contain key ("three")
                      ^
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 or not contain value (3)
                      ^
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 or not contain oneOf (8, 1, 2)
                      ^
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 or not contain oneOf (8, 1, 2)
                      ^
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 or not contain atLeastOneOf (8, 1, 2)
                      ^
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 or not contain atLeastOneElementOf (8, 1, 2)
                      ^
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 or not contain noneOf (8, 1, 2)
                      ^
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 or not contain noElementsOf (8, 1, 2)
                      ^
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 or not contain theSameElementsAs (List(8, 1, 2))
                      ^

This method enables the following syntax given a MatcherFactory2:

This method enables the following syntax given a MatcherFactory2:

aMatcherFactory or not contain theSameElementsInOrderAs (List(8, 1, 2))
                      ^
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 or not contain only (8, 1, 2)
                      ^
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 or not contain inOrderOnly (8, 1, 2))
                      ^
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 or not contain allOf (8, 1, 2)
                      ^
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 or not contain allOf (8, 1, 2)
                      ^
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 or not contain inOrder (8, 1, 2)
                      ^
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 or not contain inOrderElementsOf (8, 1, 2)
                      ^
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 or not contain atMostOneOf (8, 1, 2)
                      ^
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 or not contain atMostOneElementOf (List(8, 1, 2))
                      ^
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 or not endWith regex (decimal)
                      ^
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 or not endWith ("1.7")
                      ^
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 or not equal (3 - 1)
                      ^
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 or not equal (17.0 +- 0.2)
                      ^
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 or not equal (null)
                      ^
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 or not fullyMatch regex (decimal)
                      ^
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 or not have length (3)
                      ^
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 or not have size (3)
                      ^
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 or not have message ("Message from Mars!")
                      ^
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 or not have (author ("Melville"))
                      ^
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 or not include regex (decimal)
                      ^
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 or not include ("1.7")
                      ^
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 or not matchPattern { case Person("Bob", _) =>}
                      ^
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 or not startWith regex (decimal)
                      ^
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 or not startWith ("1.7")
                      ^

Concrete fields

val owner: MatcherFactory2[SC, TC1, TC2]

Get the MatcherFactory instance, currently used by macro.

Get the MatcherFactory instance, currently used by macro.