class ResultOfBeWordForAny[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.
- Source
- Matchers.scala
- Alphabetic
- By Inheritance
- ResultOfBeWordForAny
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ResultOfBeWordForAny(left: T, shouldBeTrue: Boolean, prettifier: Prettifier, pos: Position)
Value Members
- def a(bePropertyMatcher: BePropertyMatcher[T])(implicit ev: <:<[T, AnyRef]): Assertion
This method enables the following syntax, where
badBook
is, for example, of typeBook
andgoodRead
refers to aBePropertyMatcher[Book]
:This method enables the following syntax, where
badBook
is, for example, of typeBook
andgoodRead
refers to aBePropertyMatcher[Book]
:badBook should be a (goodRead) ^
- def a(symbol: Symbol)(implicit toAnyRef: <:<[T, AnyRef]): Assertion
This method enables the following syntax:
This method enables the following syntax:
fileMock should be a ('file) ^
- def a(aMatcher: AMatcher[T]): Assertion
This method enables the following syntax (positiveNumber is a
AMatcher
):This method enables the following syntax (positiveNumber is a
AMatcher
):1 should be a positiveNumber ^
- def an(beTrueMatcher: BePropertyMatcher[T])(implicit ev: <:<[T, AnyRef]): Assertion
This method enables the following syntax, where
badBook
is, for example, of typeBook
andexcellentRead
refers to aBePropertyMatcher[Book]
:This method enables the following syntax, where
badBook
is, for example, of typeBook
andexcellentRead
refers to aBePropertyMatcher[Book]
:book should be an (excellentRead) ^
- def an(symbol: Symbol)(implicit toAnyRef: <:<[T, AnyRef]): Assertion
This method enables the following syntax:
This method enables the following syntax:
fruit should be an ('orange) ^
- def an(anMatcher: AnMatcher[T]): Assertion
This method enables the following syntax (positiveNumber is a
AnMatcher
):This method enables the following syntax (positiveNumber is a
AnMatcher
):1 should be an oddNumber ^
- def definedAt[U](right: U)(implicit ev: <:<[T, PartialFunction[U, _]]): Assertion
This method enables the following syntax, where
fraction
is, for example, of typePartialFunction
:This method enables the following syntax, where
fraction
is, for example, of typePartialFunction
:fraction should be definedAt (6) ^
- def theSameInstanceAs(right: AnyRef)(implicit toAnyRef: <:<[T, AnyRef]): Assertion
This method enables the following syntax:
This method enables the following syntax:
result should be theSameInstanceAs anotherObject ^
- def toString(): String
Overrides to return pretty toString.
Overrides to return pretty toString.
- returns
"ResultOfBeWordForAny([left], [shouldBeTrue])"
- Definition Classes
- ResultOfBeWordForAny → AnyRef → Any