org.scalatest.matchers.Matcher

AndNotWord

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AndNotWord
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AndNotWord()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def be[A, U <: PartialFunction[A, _]](resultOfDefinedAt: ResultOfDefinedAt[A]): Matcher[T with U]

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

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

    fraction should (not be definedAt (0) and not be definedAt (8))
                                                  ^
    

  8. def be[U](interval: Interval[U]): Matcher[T with U]

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

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

    sevenDotOh should (not be (17.0 +- 0.2) and not be (17.0 +- 0.2))
                                                    ^
    

  9. def be(resultOfTheSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication): Matcher[T]

    This method enables the following syntax:

    This method enables the following syntax:

    obj should (not be theSameInstanceAs (otherString) and not be theSameInstanceAs (otherString))
                                                               ^
    

  10. def be[U](resultOfAnWordApplication: ResultOfAnWordToAnMatcherApplication[U]): Matcher[T with U]

    This method enables the following syntax:

    This method enables the following syntax:

    result should (not be an (oddMarks) and not be an (invalidMarks))
                                                   ^
    

  11. def be[T <: AnyRef](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[T]): Matcher[T with T]

    This method enables the following syntax:

    This method enables the following syntax:

    myFile should (not be an (directory) and not be an (directory))
                                                 ^
    

  12. def be(resultOfAnWordApplication: ResultOfAnWordToSymbolApplication): Matcher[T]

    This method enables the following syntax:

    This method enables the following syntax:

    result should (not be a negativeNumber and not be a primeNumber)
                                                   ^
    

  13. def be[U <: AnyRef](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U]): Matcher[T with U]

    This method enables the following syntax:

    This method enables the following syntax:

    myFile should (not be a (directory) and not be a (directory))
                                                ^
    

  14. def be[U](resultOfAWordApplication: ResultOfAWordToAMatcherApplication[U]): Matcher[T with U]

    This method enables the following syntax:

    This method enables the following syntax:

    result should (not be a (passedMarks) and not be a (validMarks))
                                                  ^
    

  15. def be(resultOfAWordApplication: ResultOfAWordToSymbolApplication): Matcher[T]

    This method enables the following syntax:

    This method enables the following syntax:

    isNotFileMock should (not be a ('file) and not be a ('file))
                                                   ^
    

  16. def be[U](bePropertyMatcher: BePropertyMatcher[U]): Matcher[T with U]

    This method enables the following syntax:

    This method enables the following syntax:

    myFile should (not be (directory) and not be (directory))
                                                 ^
    

  17. def be[U](beMatcher: BeMatcher[U]): Matcher[T with U]

    This method enables the following syntax:

    This method enables the following syntax:

    2 should (not be (odd) and not be (odd))
                                   ^
    

  18. def be(symbol: Symbol): Matcher[T]

    This method enables the following syntax:

    This method enables the following syntax:

    notEmptyMock should (not be ('empty) and not be ('empty))
                                                 ^
    

  19. def be(tripleEqualsInvocation: TripleEqualsInvocation[_]): Matcher[T]

    This method enables the following syntax:

    This method enables the following syntax:

    5 should (not be === (2) and not be === (6))
                                     ^
    

  20. def be[U](resultOfGreaterThanOrEqualToComparison: ResultOfGreaterThanOrEqualToComparison[U]): Matcher[T with U]

    This method enables the following syntax:

    This method enables the following syntax:

    7 should (not be >= (8) and not be >= (6))
                                    ^
    

  21. def be[U](resultOfLessThanOrEqualToComparison: ResultOfLessThanOrEqualToComparison[U]): Matcher[T with U]

    This method enables the following syntax:

    This method enables the following syntax:

    2 should (not be <= (1) and not be <= (2))
                                    ^
    

  22. def be[U](resultOfGreaterThanComparison: ResultOfGreaterThanComparison[U]): Matcher[T with U]

    This method enables the following syntax:

    This method enables the following syntax:

    7 should (not be > (8) and not be > (6))
                                   ^
    

  23. def be(o: Null): Matcher[T]

    This method enables the following syntax:

    This method enables the following syntax:

    map should (contain key (7) and not be (null))
                                        ^
    

  24. def be[U](resultOfLessThanComparison: ResultOfLessThanComparison[U]): Matcher[T with U]

    This method enables the following syntax:

    This method enables the following syntax:

    5 should (not be < (2) and not be < (6))
                                   ^
    

  25. def be(any: Any): Matcher[T]

    This method enables the following syntax:

    This method enables the following syntax:

    1 should (not be (2) and not be (3 - 1))
                                 ^
    

  26. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. def contain[U](resultOfAnWordApplication: ResultOfAnWordToAnMatcherApplication[U]): Matcher[T with GenTraversable[U]]

    This method enables the following syntax:

    This method enables the following syntax:

    result should (not contain an oddNumber and not contain an invalidNumber)
                                                    ^
    

  28. def contain[U](resultOfAWordApplication: ResultOfAWordToAMatcherApplication[U]): Matcher[T with GenTraversable[U]]

    This method enables the following syntax:

    This method enables the following syntax:

    result should (not contain a negativeNumber and not contain a primeNumber)
                                                        ^
    

  29. def contain[U](right: ContainMatcher[U]): Matcher[T with GenTraversable[U]]

    This method enables the following syntax:

    This method enables the following syntax:

    collection should (contain theSameElementsAs (List(1, 2, 3)) and not contain theSameElementsAs (List(8, 1, 2)))
                                                                         ^
    

  30. def contain[U](resultOfValueWordApplication: ResultOfValueWordApplication[U]): Matcher[T with GenMap[K, U] forSome {type K}]

    This method enables the following syntax:

    This method enables the following syntax:

    Map("one" -> 1, "two" -> 2) should (not contain value (5) and not contain value (3))
                                                                      ^
    

  31. def contain[U](resultOfKeyWordApplication: ResultOfKeyWordApplication[U]): Matcher[T with GenMap[U, Any]]

    This method enables the following syntax:

    This method enables the following syntax:

    Map("one" -> 1, "two" -> 2) should (not contain key ("five") and not contain key ("three"))
                                                                         ^
    

  32. def contain[U](expectedElement: U): MatcherFactory1[T, Containing]

    This method enables the following syntax:

    This method enables the following syntax:

    Array(1, 2) should (not contain (5) and not contain (3))
                                                        ^
    

  33. def endWith(expectedSubstring: String): Matcher[T with String]

    This method enables the following syntax:

    This method enables the following syntax:

    "fred" should (not endWith ("fre") and not endWith ("1.7"))
                                               ^
    

  34. def endWith(resultOfRegexWordApplication: ResultOfRegexWordApplication): Matcher[T with String]

    This method enables the following syntax:

    This method enables the following syntax:

    "fred" should (not endWith regex ("bob") and not endWith regex (decimal))
                                                     ^
    

  35. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. def equal(o: Null): Matcher[T]

    This method enables the following syntax:

    This method enables the following syntax:

    aNullRef should (not equal ("hi") and not equal (null))
                                      ^
    

  37. def equal[U](interval: Interval[U]): Matcher[T with U]

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

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

    sevenDotOh should (not equal (17.0 +- 0.2) and not equal (17.0 +- 0.2))
                                                       ^
    

  38. def equal(any: Any): MatcherFactory1[T, Equality]

    This method enables the following syntax:

    This method enables the following syntax:

    1 should (not equal (2) and not equal (3 - 1))
                                    ^
    

  39. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  40. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  41. def fullyMatch(resultOfRegexWordApplication: ResultOfRegexWordApplication): Matcher[T with String]

    This method enables the following syntax:

    This method enables the following syntax:

    "fred" should (not fullyMatch regex ("bob") and not fullyMatch regex (decimal))
                                                        ^
    

  42. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  43. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  44. def have[U](firstPropertyMatcher: HavePropertyMatcher[U, _], propertyMatchers: HavePropertyMatcher[U, _]*): Matcher[T with U]

    This method enables the following syntax:

    This method enables the following syntax:

    book should (not have (title ("Moby Dick")) and not have (author ("Melville")))
                                                        ^
    

  45. def have(resultOfSizeWordApplication: ResultOfSizeWordApplication): MatcherFactory1[T, Size]

    This method enables the following syntax:

    This method enables the following syntax:

    Array(1, 2) should (not have size (5) and not have size (3))
                                                  ^
    

  46. def have(resultOfLengthWordApplication: ResultOfLengthWordApplication): MatcherFactory1[T, Length]

    This method enables the following syntax:

    This method enables the following syntax:

    Array(1, 2) should (not have size (5) and not have length (3))
                                                  ^
    

  47. def include(expectedSubstring: String): Matcher[T with String]

    This method enables the following syntax:

    This method enables the following syntax:

    "fred" should (not include ("bob") and not include ("1.7"))
                                               ^
    

  48. def include(resultOfRegexWordApplication: ResultOfRegexWordApplication): Matcher[T with String]

    This method enables the following syntax:

    This method enables the following syntax:

    "fred" should (not include regex ("bob") and not include regex (decimal))
                                                        ^
    

  49. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  50. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  51. def newContain(right: ResultOfAtLeastOneOfApplication): MatcherFactory1[T, Aggregating]

    This method enables the following syntax:

    This method enables the following syntax:

    collection should (contain theSameElementsAs (List(1, 2, 3)) and not contain theSameElementsAs (List(8, 1, 2)))
                                                                         ^
    

  52. def newContain(right: ResultOfNewOneOfApplication): MatcherFactory1[T, Containing]

    This method enables the following syntax:

    This method enables the following syntax:

    collection should (contain theSameElementsAs (List(1, 2, 3)) and not contain theSameElementsAs (List(8, 1, 2)))
                                                                         ^
    

  53. final def notify(): Unit

    Definition Classes
    AnyRef
  54. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  55. def startWith(expectedSubstring: String): Matcher[T with String]

    This method enables the following syntax:

    This method enables the following syntax:

    "fred" should (not startWith ("red") and not startWith ("1.7"))
                                                 ^
    

  56. def startWith(resultOfRegexWordApplication: ResultOfRegexWordApplication): Matcher[T with String]

    This method enables the following syntax:

    This method enables the following syntax:

    "fred" should (not startWith regex ("bob") and not startWith regex (decimal))
                                                       ^
    

  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  58. def toString(): String

    Definition Classes
    AnyRef → Any
  59. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  60. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  61. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped