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
- All
Instance Constructors
- new ResultOfBeWordForAny(left: T, shouldBeTrue: Boolean, prettifier: Prettifier, pos: Position)
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
-
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 ^
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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) ^
-
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
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
-
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( ... )