Packages

final class AndNotWord extends AnyRef

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

Source
MatcherFactory3.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AndNotWord
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AndNotWord(prettifier: Prettifier, pos: Position)

Value Members

  1. def be(definedWord: DefinedWord): MatcherFactory4[SC, TC1, TC2, TC3, Definition]

    This method enables the following syntax:

    This method enables the following syntax:

    aMatcherFactory and not be defined
                            ^
    

  2. def be(emptyWord: EmptyWord): MatcherFactory4[SC, TC1, TC2, TC3, Emptiness]

    This method enables the following syntax:

    This method enables the following syntax:

    aMatcherFactory and not be empty
                            ^
    

  3. def be(writableWord: WritableWord): MatcherFactory4[SC, TC1, TC2, TC3, Writability]

    This method enables the following syntax:

    This method enables the following syntax:

    aMatcherFactory and not be writable
                            ^
    

  4. def be(readableWord: ReadableWord): MatcherFactory4[SC, TC1, TC2, TC3, Readability]

    This method enables the following syntax:

    This method enables the following syntax:

    aMatcherFactory and not be readable
                            ^
    

  5. def be(sortedWord: SortedWord): MatcherFactory4[SC, TC1, TC2, TC3, Sortable]

    This method enables the following syntax:

    This method enables the following syntax:

    aMatcherFactory and not be sorted
                            ^
    

  6. def be[A, U <: PartialFunction[A, _]](resultOfDefinedAt: ResultOfDefinedAt[A]): MatcherFactory3[SC with U, TC1, TC2, TC3]

    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)
                            ^
    

  7. def be[U](spread: Spread[U]): MatcherFactory3[SC with U, TC1, TC2, TC3]

    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)
                            ^
    

  8. def be(resultOfTheSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication): MatcherFactory3[SC, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not be theSameInstanceAs (otherString)
                            ^
    

  9. macro def be(anType: ResultOfAnTypeInvocation[_]): MatcherFactory3[SC, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not be an [Apple]
                            ^
    

  10. macro def be(aType: ResultOfATypeInvocation[_]): MatcherFactory3[SC, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not be a [Book]
                            ^
    

  11. def be[U](resultOfAnWordApplication: ResultOfAnWordToAnMatcherApplication[U]): MatcherFactory3[SC with U, TC1, TC2, TC3]

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

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

    aMatcherFactory and not be an (invalidMarks)
                            ^
    

  12. def be[SC <: AnyRef](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[SC]): MatcherFactory3[SC with SC, TC1, TC2, TC3]

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

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

    aMatcherFactory and not be an (apple)
                            ^
    

  13. def be[U <: AnyRef](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U]): MatcherFactory3[SC with U, TC1, TC2, TC3]

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

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

    aMatcherFactory and not be a (directory)
                            ^
    

  14. def be[U](resultOfAWordApplication: ResultOfAWordToAMatcherApplication[U]): MatcherFactory3[SC with U, TC1, TC2, TC3]

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

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

    aMatcherFactory and not be a (validMarks)
                            ^
    

  15. def be[U](bePropertyMatcher: BePropertyMatcher[U]): MatcherFactory3[SC with U, TC1, TC2, TC3]

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

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

    aMatcherFactory and not be (directory)
                            ^
    

  16. def be[U](beMatcher: BeMatcher[U]): MatcherFactory3[SC with U, TC1, TC2, TC3]

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

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

    aMatcherFactory and not be (odd)
                            ^
    

  17. def be(tripleEqualsInvocation: TripleEqualsInvocation[_]): MatcherFactory3[SC, TC1, TC2, TC3]

    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.

    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.

  18. def be[U](resultOfGreaterThanOrEqualToComparison: ResultOfGreaterThanOrEqualToComparison[U]): MatcherFactory3[SC with U, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not be >= (6)
                            ^
    

  19. def be[U](resultOfLessThanOrEqualToComparison: ResultOfLessThanOrEqualToComparison[U]): MatcherFactory3[SC with U, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not be <= (2)
                            ^
    

  20. def be[U](resultOfGreaterThanComparison: ResultOfGreaterThanComparison[U]): MatcherFactory3[SC with U, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory (8) and not be > (6)
                                ^
    

  21. def be(o: Null): MatcherFactory3[SC, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not be (null)
                            ^
    

  22. def be[U](resultOfLessThanComparison: ResultOfLessThanComparison[U]): MatcherFactory3[SC with U, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not be < (6)
                            ^
    

  23. def be(any: Any): MatcherFactory3[SC, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not be (3 - 1)
                            ^
    

  24. def contain(right: ResultOfAtMostOneElementOfApplication): MatcherFactory4[SC, TC1, TC2, TC3, Aggregating]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain atMostOneElementOf (List(8, 1, 2))
                            ^
    

  25. def contain(right: ResultOfAtMostOneOfApplication): MatcherFactory4[SC, TC1, TC2, TC3, Aggregating]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain atMostOneOf (8, 1, 2)
                            ^
    

  26. def contain(right: ResultOfInOrderElementsOfApplication): MatcherFactory4[SC, TC1, TC2, TC3, Sequencing]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain inOrder (8, 1, 2)
                            ^
    

  27. def contain(right: ResultOfInOrderApplication): MatcherFactory4[SC, TC1, TC2, TC3, Sequencing]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain inOrder (8, 1, 2)
                            ^
    

  28. def contain(right: ResultOfAllElementsOfApplication): MatcherFactory4[SC, TC1, TC2, TC3, Aggregating]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain allElementsOf (8, 1, 2)
                            ^
    

  29. def contain(right: ResultOfAllOfApplication): MatcherFactory4[SC, TC1, TC2, TC3, Aggregating]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain allOf (8, 1, 2)
                            ^
    

  30. def contain(right: ResultOfInOrderOnlyApplication): MatcherFactory4[SC, TC1, TC2, TC3, Sequencing]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain inOrderOnly (8, 1, 2)
                            ^
    

  31. def contain(right: ResultOfOnlyApplication): MatcherFactory4[SC, TC1, TC2, TC3, Aggregating]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain only (8, 1, 2)
                            ^
    

  32. def contain(right: ResultOfTheSameElementsInOrderAsApplication): MatcherFactory4[SC, TC1, TC2, TC3, Sequencing]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain theSameElementsInOrderAs (List(8, 1, 2))
                            ^
    

  33. def contain(right: ResultOfTheSameElementsAsApplication): MatcherFactory4[SC, TC1, TC2, TC3, Aggregating]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain theSameElementsAs (List(8, 1, 2))
                            ^
    

  34. def contain(right: ResultOfNoElementsOfApplication): MatcherFactory4[SC, TC1, TC2, TC3, Containing]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain noElementsOf (8, 1, 2)
                            ^
    

  35. def contain(right: ResultOfNoneOfApplication): MatcherFactory4[SC, TC1, TC2, TC3, Containing]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain noneOf (8, 1, 2)
                            ^
    

  36. def contain(right: ResultOfAtLeastOneElementOfApplication): MatcherFactory4[SC, TC1, TC2, TC3, Aggregating]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain atLeastOneOf (8, 1, 2)
                            ^
    

  37. def contain(right: ResultOfAtLeastOneOfApplication): MatcherFactory4[SC, TC1, TC2, TC3, Aggregating]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain atLeastOneOf (8, 1, 2)
                            ^
    

  38. def contain(right: ResultOfOneElementOfApplication): MatcherFactory4[SC, TC1, TC2, TC3, Containing]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain oneElementOf (List(8, 1, 2))
                            ^
    

  39. def contain(right: ResultOfOneOfApplication): MatcherFactory4[SC, TC1, TC2, TC3, Containing]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain oneOf (8, 1, 2)
                            ^
    

  40. def contain(resultOfValueWordApplication: ResultOfValueWordApplication): MatcherFactory4[SC, TC1, TC2, TC3, ValueMapping]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain value (3)
                            ^
    

  41. def contain(resultOfKeyWordApplication: ResultOfKeyWordApplication): MatcherFactory4[SC, TC1, TC2, TC3, KeyMapping]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain key ("three")
                            ^
    

  42. def contain[U](expectedElement: U): MatcherFactory4[SC, TC1, TC2, TC3, Containing]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not contain (3)
                            ^
    

  43. def endWith(expectedSubstring: String): MatcherFactory3[SC with String, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not endWith ("1.7")
                            ^
    

  44. def endWith(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory3[SC with String, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not endWith regex (decimal)
                            ^
    

  45. def equal(o: Null): MatcherFactory3[SC, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not equal (null)
                            ^
    

  46. def equal[U](spread: Spread[U]): MatcherFactory3[SC with U, TC1, TC2, TC3]

    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)
                            ^
    

  47. def equal(any: Any): MatcherFactory4[SC, TC1, TC2, TC3, Equality]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not equal (3 - 1)
                            ^
    

  48. def fullyMatch(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory3[SC with String, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not fullyMatch regex (decimal)
                            ^
    

  49. def have[U](firstPropertyMatcher: HavePropertyMatcher[U, _], propertyMatchers: HavePropertyMatcher[U, _]*): MatcherFactory3[SC with U, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not have (author ("Melville"))
                            ^
    

  50. def have(resultOfMessageWordApplication: ResultOfMessageWordApplication): MatcherFactory4[SC, TC1, TC2, TC3, Messaging]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not have message ("Message from Mars!")
                            ^
    

  51. def have(resultOfSizeWordApplication: ResultOfSizeWordApplication): MatcherFactory4[SC, TC1, TC2, TC3, Size]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not have size (3)
                            ^
    

  52. def have(resultOfLengthWordApplication: ResultOfLengthWordApplication): MatcherFactory4[SC, TC1, TC2, TC3, Length]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not have length (3)
                            ^
    

  53. def include(expectedSubstring: String): MatcherFactory3[SC with String, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not include ("1.7")
                            ^
    

  54. def include(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory3[SC with String, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not include regex (decimal)
                            ^
    

  55. macro def matchPattern(right: PartialFunction[Any, _]): Matcher[Any]

    This method enables the following syntax:

    This method enables the following syntax:

    aMatcherFactory and not matchPattern { case Person("Bob", _) =>}
                            ^
    

  56. val owner: MatcherFactory3[SC, TC1, TC2, TC3]

    Get the MatcherFactory instance, currently used by macro only.

    Get the MatcherFactory instance, currently used by macro only.

  57. def startWith(expectedSubstring: String): MatcherFactory3[SC with String, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not startWith ("1.7")
                            ^
    

  58. def startWith(resultOfRegexWordApplication: ResultOfRegexWordApplication): MatcherFactory3[SC with String, TC1, TC2, TC3]

    This method enables the following syntax given a MatcherFactory3:

    This method enables the following syntax given a MatcherFactory3:

    aMatcherFactory and not startWith regex (decimal)
                            ^