org.scalatest.WillMatchers

AnyWillWrapper

sealed class AnyWillWrapper[T] extends AnyRef

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

This class is used in conjunction with an implicit conversion to enable will methods to be invoked on objects of type Any.

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

Instance Constructors

  1. new AnyWillWrapper(leftSideValue: T, pos: Position, prettifier: Prettifier)

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 clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. val leftSideValue: T

  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

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

    Definition Classes
    AnyRef
  18. val pos: Position

  19. val prettifier: Prettifier

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

    Definition Classes
    AnyRef
  21. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def will(endWithWord: EndWithWord)(implicit ev: <:<[T, String]): ResultOfEndWithWordForString

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string will endWith regex ("world")
           ^
    

  26. def will(startWithWord: StartWithWord)(implicit ev: <:<[T, String]): ResultOfStartWithWordForString

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string will startWith regex ("hello")
           ^
    

  27. def will(includeWord: IncludeWord)(implicit ev: <:<[T, String]): ResultOfIncludeWordForString

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string will include regex ("hi")
           ^
    

  28. def will(notExist: ResultOfNotExist)(implicit existence: Existence[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file will not (exist)
         ^
    

  29. def will(existWord: ExistWord)(implicit existence: Existence[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file will exist
         ^
    

  30. def will(containWord: ContainWord): FactResultOfContainWord[T]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    xs will contain oneOf (1, 2, 3)
       ^
    

  31. def will(haveWord: HaveWord): ResultOfHaveWordForExtent[T]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result will have length (3)
           ^
    result will have size (3)
           ^
    

  32. def will(beWord: BeWord): ResultOfBeWordForAny[T]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result will be a aMatcher
           ^
    

  33. def will(inv: TripleEqualsInvocationOnSpread[T])(implicit ev: Numeric[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result will === (100 +- 1)
           ^
    

  34. def will[U](inv: TripleEqualsInvocation[U])(implicit constraint: CanEqual[T, U]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a will === (b)
           ^
    

  35. def will(notWord: NotWord): FactResultOfNotWordForAny[T]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result will not equal (3)
           ^
    

  36. def will[TYPECLASS1[_], TYPECLASS2[_]](rightMatcherFactory2: MatcherFactory2[T, TYPECLASS1, TYPECLASS2])(implicit typeClass1: TYPECLASS1[T], typeClass2: TYPECLASS2[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result will (equal (expected) and have length 3)
           ^
    

  37. def will[TYPECLASS1[_]](rightMatcherFactory1: MatcherFactory1[T, TYPECLASS1])(implicit typeClass1: TYPECLASS1[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result will equal (3)
           ^
    

  38. def will(rightMatcherX1: Matcher[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result will be (3)
           ^
    

  39. def willBe[U >: T](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[U])(implicit ev: <:<[T, AnyRef]): Fact

    This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

    This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

    programmingInScala willBe an (excellentRead)
                       ^
    

  40. def willBe[U >: T](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U])(implicit ev: <:<[T, AnyRef]): Fact

    This method enables the following syntax, where goodRead refers to a BePropertyMatcher[Book]:

    This method enables the following syntax, where goodRead refers to a BePropertyMatcher[Book]:

    programmingInScala willBe a (goodRead)
                       ^
    

  41. def willBe(bePropertyMatcher: BePropertyMatcher[T])(implicit ev: <:<[T, AnyRef]): Fact

    This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

    This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

    programmingInScala willBe excellentRead
                       ^
    

  42. def willBe(resultOfSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication)(implicit toAnyRef: <:<[T, AnyRef]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe theSameInstanceAs (anotherObject)
           ^
    

  43. def willBe(right: Null)(implicit ev: <:<[T, AnyRef]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe null
           ^
    

  44. def willBe(right: DefinedWord)(implicit definition: Definition[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe defined
           ^
    

  45. def willBe(right: EmptyWord)(implicit emptiness: Emptiness[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe empty
           ^
    

  46. def willBe(right: WritableWord)(implicit writability: Writability[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe writable
           ^
    

  47. def willBe(right: ReadableWord)(implicit readability: Readability[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe readable
           ^
    

  48. def willBe(anType: FactResultOfAnTypeInvocation[_]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble willBe an [Book]
            ^
    

    Annotations
    @macroImpl( ... )
  49. def willBe(aType: FactResultOfATypeInvocation[_]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble willBe a [Book]
            ^
    

    Annotations
    @macroImpl( ... )
  50. def willBe(right: SortedWord)(implicit sortable: Sortable[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe sorted
           ^
    

  51. def willBe(spread: Spread[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe 7.1 +- 0.2
           ^
    

  52. def willBe(beMatcher: BeMatcher[T]): Fact

    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]:

    testing
    1 willBe odd
      ^
    

  53. def willBe(comparison: ResultOfGreaterThanOrEqualToComparison[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 willBe >= (7)
      ^
    

  54. def willBe(comparison: ResultOfLessThanOrEqualToComparison[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 willBe <= (7)
      ^
    

  55. def willBe(comparison: ResultOfGreaterThanComparison[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 willBe > (7)
      ^
    

  56. def willBe(comparison: ResultOfLessThanComparison[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 willBe < (7)
      ^
    

  57. def willBe(right: Any): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble willBe 8.8
            ^
    

  58. def willEqual(right: Null)(implicit ev: <:<[T, AnyRef]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willEqual null
           ^
    

  59. def willEqual(spread: Spread[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willEqual 7.1 +- 0.2
           ^
    

  60. def willEqual(right: Any)(implicit equality: Equality[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a willEqual b
      ^
    

  61. def willNot(includeWord: IncludeWord)(implicit ev: <:<[T, String]): ResultOfIncludeWordForString

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string willNot include regex ("hi")
           ^
    

  62. def willNot(endWithWord: EndWithWord)(implicit ev: <:<[T, String]): ResultOfEndWithWordForString

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string willNot endWith regex ("world")
           ^
    

  63. def willNot(startWithWord: StartWithWord)(implicit ev: <:<[T, String]): ResultOfStartWithWordForString

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string willNot startWith regex ("hello")
           ^
    

  64. def willNot(existWord: ExistWord)(implicit existence: Existence[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file willNot exist
         ^
    

  65. def willNot(contain: ContainWord): FactResultOfContainWord[T]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    xs willNot contain (oneOf (1, 2, 3))
       ^
    

  66. def willNot(haveWord: HaveWord): ResultOfHaveWordForExtent[T]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willNot have length (3)
           ^
    result willNot have size (3)
           ^
    exception willNot have message ("file not found")
              ^
    

  67. def willNot[TYPECLASS1[_]](rightMatcherFactory1: MatcherFactory1[T, TYPECLASS1])(implicit typeClass1: TYPECLASS1[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willNot (be readable)
           ^
    

  68. def willNot(rightMatcherX1: Matcher[T]): Fact

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willNot (be (3))
           ^
    

  69. def willNot(beWord: BeWord): ResultOfBeWordForAny[T]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willNot be (3)
           ^
    

Inherited from AnyRef

Inherited from Any

Ungrouped