final class ResultOfATypeInvocation[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
- ResultOfATypeInvocation
- 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:
a [IllegalArgumentException] must (be thrownBy { ... }) ^
- def must(notWord: NotWord): PleaseUseNoExceptionShouldSyntaxInstead
This method enables the following syntax:
This method enables the following syntax:
a [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): ResultOfBeWordForAType[T]
This method enables the following syntax:
This method enables the following syntax:
a [RuntimeException] 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:
a [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:
a [IllegalArgumentException] should (be thrownBy { ... }) ^
- def should(notWord: NotWord): PleaseUseNoExceptionShouldSyntaxInstead
This method enables the following syntax:
This method enables the following syntax:
a [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): ResultOfBeWordForAType[T]
This method enables the following syntax:
This method enables the following syntax:
a [RuntimeException] 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:
a [RuntimeException] shouldBe thrownBy { ... } ^
- def toString(): String
- Definition Classes
- ResultOfATypeInvocation → AnyRef → Any