OrNotWord

final class OrNotWord

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): Matcher[T]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be (2)
               ^
infix def be(o: Null): Matcher[T & AnyRef]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be (null)
               ^
infix def be[U](resultOfLessThanComparison: ResultOfLessThanComparison[U]): Matcher[T & U]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be < (8)
               ^
infix def be[U](resultOfGreaterThanComparison: ResultOfGreaterThanComparison[U]): Matcher[T & U]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be > (6)
               ^
infix def be[U](resultOfLessThanOrEqualToComparison: ResultOfLessThanOrEqualToComparison[U]): Matcher[T & U]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be <= (2)
               ^
infix def be[U](resultOfGreaterThanOrEqualToComparison: ResultOfGreaterThanOrEqualToComparison[U]): Matcher[T & U]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be >= (6)
               ^
infix def be(tripleEqualsInvocation: TripleEqualsInvocation[_]): Matcher[T]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be === (8)
               ^
infix def be(symbol: Symbol): Matcher[T & AnyRef]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be ('empty)
               ^
infix def be[U](beMatcher: BeMatcher[U]): Matcher[T & U]

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

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

aMatcher or not be (odd)
               ^
infix def be[U](bePropertyMatcher: BePropertyMatcher[U]): Matcher[T & AnyRef & U]

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

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

aMatcher or not be (file)
               ^
infix def be(resultOfAWordApplication: ResultOfAWordToSymbolApplication): Matcher[T & AnyRef]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be a ('file)
               ^
infix def be[U](resultOfAWordApplication: ResultOfAWordToAMatcherApplication[U]): Matcher[T & U]

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

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

aMatcher or not be a (validMarks)
               ^
infix def be[U <: AnyRef](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U]): Matcher[T & U]

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

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

aMatcher or not be a (file)
               ^
infix def be(resultOfAnWordApplication: ResultOfAnWordToSymbolApplication): Matcher[T & AnyRef]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be an ('apple)
                  ^
infix def be[U <: AnyRef](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[U]): Matcher[T & U]

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

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

aMatcher or not be an (apple)
               ^
infix def be[U](resultOfAnWordApplication: ResultOfAnWordToAnMatcherApplication[U]): Matcher[T & U]

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

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

aMatcher and not be an (invalidMarks)
                ^
infix inline def be(aType: ResultOfATypeInvocation[_]): Matcher[T]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be a [Book]
               ^
infix inline def be(anType: ResultOfAnTypeInvocation[_]): Matcher[T]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be an [Book]
               ^
infix def be(resultOfTheSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication): Matcher[T & AnyRef]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be theSameInstanceAs (string)
                  ^
infix def be[U](spread: Spread[U]): Matcher[T & U]

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

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

aMatcher or not be (17.0 +- 0.2)
               ^
infix def be[A, U <: PartialFunction[A, _]](resultOfDefinedAt: ResultOfDefinedAt[A]): Matcher[T & U]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be definedAt (8)
               ^
infix def be(sortedWord: SortedWord): MatcherFactory1[T, Sortable]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be sorted
               ^
infix def be(readableWord: ReadableWord): MatcherFactory1[T, Readability]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be readable
               ^
infix def be(emptyWord: EmptyWord): MatcherFactory1[T, Emptiness]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be empty
               ^
infix def be(writableWord: WritableWord): MatcherFactory1[T, Writability]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be writable
               ^
infix def be(definedWord: DefinedWord): MatcherFactory1[T, Definition]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not be defined
               ^
infix def contain[U](expectedElement: U): MatcherFactory1[T, Containing]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain (3)
               ^
infix def contain(right: ResultOfOneOfApplication): MatcherFactory1[T, Containing]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain oneOf (8, 1, 2)
               ^
infix def contain(right: ResultOfOneElementOfApplication): MatcherFactory1[T, Containing]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain oneElementOf (8, 1, 2)
               ^
infix def contain(right: ResultOfAtLeastOneOfApplication): MatcherFactory1[T, Aggregating]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain atLeastOneOf (8, 1, 2)
               ^

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain atLeastOneElementOf (8, 1, 2)
               ^
infix def contain(right: ResultOfNoneOfApplication): MatcherFactory1[T, Containing]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain noneOf (8, 1, 2)
               ^
infix def contain(right: ResultOfNoElementsOfApplication): MatcherFactory1[T, Containing]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain noElementsOf (8, 1, 2)
               ^

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain theSameElementsAs (8, 1, 2)
               ^

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain theSameElementsInOrderAs (8, 1, 2)
               ^
infix def contain(right: ResultOfInOrderOnlyApplication): MatcherFactory1[T, Sequencing]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain inOrderOnly (8, 1, 2)
               ^
infix def contain(right: ResultOfOnlyApplication): MatcherFactory1[T, Aggregating]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain only (8, 1, 2)
               ^
infix def contain(right: ResultOfAllOfApplication): MatcherFactory1[T, Aggregating]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain allOf (8, 1, 2)
               ^
infix def contain(right: ResultOfAllElementsOfApplication): MatcherFactory1[T, Aggregating]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain allElementsOf List(8, 1, 2)
               ^
infix def contain(right: ResultOfInOrderApplication): MatcherFactory1[T, Sequencing]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain inOrder (8, 1, 2)
               ^

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not contain inOrderElementsOf (List(8, 1, 2))
               ^
infix def contain(right: ResultOfAtMostOneOfApplication): MatcherFactory1[T, Aggregating]

This method enables the following syntax:

This method enables the following syntax:

aMatcher not contain atMostOneOf (8, 1, 2)
            ^

This method enables the following syntax:

This method enables the following syntax:

aMatcher not contain atMostOneElementOf (List(8, 1, 2))
            ^
infix def contain(resultOfKeyWordApplication: ResultOfKeyWordApplication): MatcherFactory1[T, KeyMapping]

This method enables the following syntax given a Matcher:

This method enables the following syntax given a Matcher:

aMatcher or not contain key ("three")
               ^
infix def contain(resultOfValueWordApplication: ResultOfValueWordApplication): MatcherFactory1[T, ValueMapping]

This method enables the following syntax given a Matcher:

This method enables the following syntax given a Matcher:

aMatcher or not contain value (3)
               ^
infix def endWith(resultOfRegexWordApplication: ResultOfRegexWordApplication): Matcher[T & String]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not endWith regex (decimal)
               ^
infix def endWith(expectedSubstring: String): Matcher[T & String]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not endWith ("1.7")
               ^
infix def equal(any: Any): MatcherFactory1[T, Equality]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not equal (2)
               ^
infix def equal[U](spread: Spread[U]): Matcher[T & U]

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

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

aMatcher or not equal (17.0 +- 0.2)
               ^
infix def equal(o: Null): Matcher[T]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not equal (null)
               ^
infix def fullyMatch(resultOfRegexWordApplication: ResultOfRegexWordApplication): Matcher[T & String]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not fullyMatch regex (decimal)
               ^
infix def have(resultOfLengthWordApplication: ResultOfLengthWordApplication): MatcherFactory1[T, Length]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not have length (3)
               ^
infix def have(resultOfSizeWordApplication: ResultOfSizeWordApplication): MatcherFactory1[T, Size]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not have size (3)
               ^
infix def have(resultOfMessageWordApplication: ResultOfMessageWordApplication): MatcherFactory1[T, Messaging]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not have message ("Message from Mars!")
               ^
infix def have[U](firstPropertyMatcher: HavePropertyMatcher[U, _], propertyMatchers: HavePropertyMatcher[U, _]*): Matcher[T & U]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not have (author ("Melville"))
               ^
infix def include(resultOfRegexWordApplication: ResultOfRegexWordApplication): Matcher[T & String]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not include regex (decimal)
               ^
infix def include(expectedSubstring: String): Matcher[T & String]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not include ("1.7")
               ^
infix inline def matchPattern(inline right: PartialFunction[Any, _]): Matcher[T]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not matchPattern { case Person("Bob", _) =>}
               ^
infix def startWith(resultOfRegexWordApplication: ResultOfRegexWordApplication): Matcher[T & String]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not startWith regex (decimal)
               ^
infix def startWith(expectedSubstring: String): Matcher[T & String]

This method enables the following syntax:

This method enables the following syntax:

aMatcher or not startWith ("1.7")
               ^

Concrete fields

val owner: Matcher[T]

Get the Matcher instance, currently used by macro only.

Get the Matcher instance, currently used by macro only.