org.scalatest.matchers.MustMatchers

ResultOfNotWordForArray

class ResultOfNotWordForArray[E] extends ResultOfNotWordForAnyRef[Array[E]]

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

attributes: final
definition classes: Matchers

Inherits

  1. ResultOfNotWordForAnyRef
  2. ResultOfNotWord
  3. AnyRef
  4. Any

Value Members

  1. def be(resultOfSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    otherString should not be theSameInstanceAs (string)
                           
    

    definition classes: ResultOfNotWordForAnyRef
  2. def be[U >: Array[E]](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[U]): Unit

    This method enables the following syntax, where keyEvent is, for example, of type KeyEvent and actionKey refers to a BePropertyMatcher[KeyEvent]:

    This method enables the following syntax, where keyEvent is, for example, of type KeyEvent and actionKey refers to a BePropertyMatcher[KeyEvent]:

    keyEvent should not be an (actionKey)
                        
    

    definition classes: ResultOfNotWordForAnyRef
  3. def be(resultOfAnWordApplication: ResultOfAnWordToSymbolApplication): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    keyEvent should not be an ('actionKey)
                        
    

    definition classes: ResultOfNotWordForAnyRef
  4. def be[U >: Array[E]](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U]): Unit

    This method enables the following syntax, where notFileMock is, for example, of type File and file refers to a BePropertyMatcher[File]:

    This method enables the following syntax, where notFileMock is, for example, of type File and file refers to a BePropertyMatcher[File]:

    notFileMock should not be a (file)
                           
    

    definition classes: ResultOfNotWordForAnyRef
  5. def be(resultOfAWordApplication: ResultOfAWordToSymbolApplication): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    notFileMock should not be a ('file)
                           
    

    definition classes: ResultOfNotWordForAnyRef
  6. def be(bePropertyMatcher: BePropertyMatcher[Array[E]]): Unit

    This method enables the following syntax, where stack is, for example, of type Stack and empty refers to a BePropertyMatcher[Stack]:

    This method enables the following syntax, where stack is, for example, of type Stack and empty refers to a BePropertyMatcher[Stack]:

    stack should not be (empty)
                         
    

    definition classes: ResultOfNotWordForAnyRef
  7. def be(symbol: Symbol): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    stack should not be ('empty)
                     
    

    definition classes: ResultOfNotWordForAnyRef
  8. def be(o: Null): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    map should not be (null)
                   
    

    definition classes: ResultOfNotWordForAnyRef
  9. def be(beMatcher: BeMatcher[Array[E]]): Unit

    This method enables the following syntax, where odd refers to a BeMatcher[Int]:

    This method enables the following syntax, where odd refers to a BeMatcher[Int]:

    2 should not be (odd)
                 
    

    definition classes: ResultOfNotWord
  10. def be(comparison: ResultOfTripleEqualsApplication): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    result should not be === (7)
                      
    

    definition classes: ResultOfNotWord
  11. def be(comparison: ResultOfGreaterThanComparison[Array[E]]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    result should not be > (7)
                      
    

    definition classes: ResultOfNotWord
  12. def be(comparison: ResultOfLessThanComparison[Array[E]]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    result should not be < (7)
                      
    

    definition classes: ResultOfNotWord
  13. def be(comparison: ResultOfGreaterThanOrEqualToComparison[Array[E]]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    result should not be >= (7)
                      
    

    definition classes: ResultOfNotWord
  14. def be(comparison: ResultOfLessThanOrEqualToComparison[Array[E]]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    result should not be <= (7)
                      
    

    definition classes: ResultOfNotWord
  15. def be(right: Any): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    result should not be (7)
                      
    

    definition classes: ResultOfNotWord
  16. def contain(expectedElement: E): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    Array("two", "three") should not contain ("one")
                                     
    

  17. def equal(right: Any): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    result should not equal (7)
                      
    

    definition classes: ResultOfNotWord
  18. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an equivalence relation:

    • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
    • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
    • It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef ⇐ Any
  19. def hashCode(): Int

    Returns a hash code value for the object

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    definition classes: AnyRef ⇐ Any
  20. def have(resultOfLengthWordApplication: ResultOfLengthWordApplication): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    Array(1, 2) should not have length (12)
                           
    

  21. def have(resultOfSizeWordApplication: ResultOfSizeWordApplication): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    Array(1, 2) should not have size (3)
                           
    

  22. def have[U >: Array[E]](firstPropertyMatcher: org.scalatest.matchers.HavePropertyMatcher[U, _], propertyMatchers: org.scalatest.matchers.HavePropertyMatcher[U, _]*): Unit

    This method enables the following syntax, where badBook is, for example, of type Book and title ("One Hundred Years of Solitude") results in a HavePropertyMatcher[Book]:

    This method enables the following syntax, where badBook is, for example, of type Book and title ("One Hundred Years of Solitude") results in a HavePropertyMatcher[Book]:

    book should not have (title ("One Hundred Years of Solitude"))
                    
    

    definition classes: ResultOfNotWordForAnyRef
  23. def toString(): String

    Returns a string representation of the object

    Returns a string representation of the object.

    The default representation is platform dependent.

    definition classes: AnyRef ⇐ Any

Instance constructors

  1. new ResultOfNotWordForArray(left: Array[E], shouldBeTrue: Boolean)

  2. new ResultOfNotWordForArray()