Class

org.scalatest.WillMatchers

AnyWillWrapper

Related Doc: package WillMatchers

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  12. val leftSideValue: T

    Permalink
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. val pos: Position

    Permalink
  17. val prettifier: Prettifier

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

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string will endWith regex ("world")
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string will startWith regex ("hello")
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string will include regex ("hi")
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file will not (exist)
         ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file will exist
         ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

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

    Permalink

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

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result will be a aMatcher
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a will === (b)
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result will not equal (3)
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result will equal (3)
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result will be (3)
           ^
    

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

    Permalink

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

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

    Permalink

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

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

    Permalink

    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
                       ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe theSameInstanceAs (anotherObject)
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe null
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe defined
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe empty
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe writable
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe readable
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble willBe an [Book]
            ^
    

  47. macro def willBe(aType: FactResultOfATypeInvocation[_]): Fact

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble willBe a [Book]
            ^
    

  48. def willBe(right: SortedWord)(implicit sortable: Sortable[T]): Fact

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe sorted
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willBe 7.1 +- 0.2
           ^
    

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

    Permalink

    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
      ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 willBe >= (7)
      ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 willBe <= (7)
      ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 willBe > (7)
      ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 willBe < (7)
      ^
    

  55. def willBe(right: Any): Fact

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble willBe 8.8
            ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willEqual null
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willEqual 7.1 +- 0.2
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a willEqual b
      ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string willNot include regex ("hi")
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string willNot endWith regex ("world")
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string willNot startWith regex ("hello")
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file willNot exist
         ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

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

    Permalink

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

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willNot (be readable)
           ^
    

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

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result willNot (be (3))
           ^
    

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

    Permalink

    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