final class ResultOfAnTypeInvocation[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.
- Alphabetic
- By Inheritance
- ResultOfAnTypeInvocation
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- val clazz: Class[T]
- val clazzTag: ClassTag[T]
- def must(beThrownBy: ResultOfBeThrownBy)(implicit prettifier: Prettifier, pos: Position): Assertion
This method enables the following syntax:
This method enables the following syntax:
an [RuntimeException] must (be thrownBy { ... }) ^
- def must(notWord: NotWord): PleaseUseNoExceptionShouldSyntaxInstead
This method enables the following syntax:
This method enables the following syntax:
an [RuntimeException] must not ^
This method is here to direct people trying to use the above syntax to use
noException
instead. - def must(beWord: BeWord)(implicit prettifier: Prettifier, pos: Position): ResultOfBeWordForAnType[T]
This method enables the following syntax:
This method enables the following syntax:
an [Exception] must be thrownBy { ... } ^
- def mustBe(thrownBy: ResultOfThrownByApplication)(implicit prettifier: Prettifier, pos: Position): Assertion
This method enables the following syntax:
This method enables the following syntax:
an [RuntimeException] mustBe thrownBy { ... } ^
- def should(beThrownBy: ResultOfBeThrownBy)(implicit prettifier: Prettifier, pos: Position): Assertion
This method enables the following syntax:
This method enables the following syntax:
an [RuntimeException] should (be thrownBy { ... }) ^
- def should(notWord: NotWord): PleaseUseNoExceptionShouldSyntaxInstead
This method enables the following syntax:
This method enables the following syntax:
an [RuntimeException] should not ^
This method is here to direct people trying to use the above syntax to use
noException
instead. - def should(beWord: BeWord)(implicit prettifier: Prettifier, pos: Position): ResultOfBeWordForAnType[T]
This method enables the following syntax:
This method enables the following syntax:
an [Exception] should be thrownBy { ... } ^
- def shouldBe(thrownBy: ResultOfThrownByApplication)(implicit prettifier: Prettifier, pos: Position): Assertion
This method enables the following syntax:
This method enables the following syntax:
an [RuntimeException] shouldBe thrownBy { ... } ^
- def toString(): String
- Definition Classes
- ResultOfAnTypeInvocation → AnyRef → Any