final class AnWord extends AnyRef
This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers
for an overview of
the matchers DSL.
- Source
- MustMatchers.scala
- Alphabetic
- By Inheritance
- AnWord
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AnWord()
Value Members
-
def
apply[T](anMatcher: AnMatcher[T]): ResultOfAnWordToAnMatcherApplication[T]
This method enables the following syntax, where,
positiveNumber
is anAnMatcher[Book]
:This method enables the following syntax, where,
positiveNumber
is anAnMatcher[Book]
:result must not be an (positiveNumber) ^
-
def
apply[T](beTrueMatcher: BePropertyMatcher[T]): ResultOfAnWordToBePropertyMatcherApplication[T]
This method enables the following syntax, where, for example,
badBook
is of typeBook
andexcellentRead
is aBePropertyMatcher[Book]
:This method enables the following syntax, where, for example,
badBook
is of typeBook
andexcellentRead
is aBePropertyMatcher[Book]
:badBook must not be an (excellentRead) ^
-
def
apply(symbol: Symbol): ResultOfAnWordToSymbolApplication
This method enables the following syntax:
This method enables the following syntax:
badBook must not be an ('excellentRead) ^
-
def
toString(): String
Overrides to return pretty toString.