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.
- Source
- WillMatchers.scala
- Alphabetic
- By Inheritance
- AnyWillWrapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AnyWillWrapper(leftSideValue: T, pos: Position, prettifier: Prettifier)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val leftSideValue: T
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val pos: Position
- val prettifier: Prettifier
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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") ^ -
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") ^ -
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") ^ -
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) ^ -
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 ^ -
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) ^
-
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) ^ -
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 ^ -
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) ^ -
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) ^ -
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) ^ -
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) ^ -
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) ^ -
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) ^ -
def
willBe[U >: T](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[U])(implicit ev: <:<[T, AnyRef]): Fact
This method enables the following syntax, where
excellentReadrefers to aBePropertyMatcher[Book]:This method enables the following syntax, where
excellentReadrefers to aBePropertyMatcher[Book]:programmingInScala willBe an (excellentRead) ^ -
def
willBe[U >: T](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U])(implicit ev: <:<[T, AnyRef]): Fact
This method enables the following syntax, where
goodReadrefers to aBePropertyMatcher[Book]:This method enables the following syntax, where
goodReadrefers to aBePropertyMatcher[Book]:programmingInScala willBe a (goodRead) ^ -
def
willBe(bePropertyMatcher: BePropertyMatcher[T])(implicit ev: <:<[T, AnyRef]): Fact
This method enables the following syntax, where
excellentReadrefers to aBePropertyMatcher[Book]:This method enables the following syntax, where
excellentReadrefers to aBePropertyMatcher[Book]:programmingInScala willBe excellentRead ^ -
def
willBe(resultOfAnWordApplication: ResultOfAnWordToSymbolApplication)(implicit toAnyRef: <:<[T, AnyRef]): Fact
This method enables the following syntax:
This method enables the following syntax:
list willBe an ('empty) ^ -
def
willBe(resultOfAWordApplication: ResultOfAWordToSymbolApplication)(implicit toAnyRef: <:<[T, AnyRef]): Fact
This method enables the following syntax:
This method enables the following syntax:
list willBe a ('empty) ^ -
def
willBe(symbol: Symbol)(implicit toAnyRef: <:<[T, AnyRef]): Fact
This method enables the following syntax:
This method enables the following syntax:
list willBe 'empty ^ -
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) ^ -
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 ^ -
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 ^ -
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 ^ -
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 ^ -
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 ^ -
macro
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] ^ -
macro
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] ^ -
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 ^ -
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 ^ -
def
willBe(beMatcher: BeMatcher[T]): Fact
This method enables the following syntax, where
oddrefers to aBeMatcher[Int]:This method enables the following syntax, where
oddrefers to aBeMatcher[Int]:testing 1 willBe odd ^
-
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) ^
-
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) ^
-
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) ^
-
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) ^
-
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 ^ -
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 ^ -
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 ^ -
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 ^
-
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") ^ -
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") ^ -
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") ^ -
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 ^ -
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)) ^
-
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") ^ -
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) ^ -
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)) ^ -
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) ^