This method enables the following syntax:
This method enables the following syntax:
an [RuntimeException] must (be thrownBy { ... }) ^
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.
This method enables the following syntax:
This method enables the following syntax:
an [Exception] must be thrownBy { ... } ^
This method enables the following syntax:
This method enables the following syntax:
an [RuntimeException] mustBe thrownBy { ... } ^
This method enables the following syntax:
This method enables the following syntax:
an [RuntimeException] should (be thrownBy { ... }) ^
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.
This method enables the following syntax:
This method enables the following syntax:
an [Exception] should be thrownBy { ... } ^
This method enables the following syntax:
This method enables the following syntax:
an [RuntimeException] shouldBe thrownBy { ... } ^
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchers
for an overview of the matchers DSL.