Packages

c

org.scalatest.words

ResultOfAnTypeInvocation

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.

Source
ResultOfAnTypeInvocation.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResultOfAnTypeInvocation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResultOfAnTypeInvocation(clazz: Class[T])

Value Members

  1. val clazz: Class[T]
  2. 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 { ... })
                          ^
    

  3. 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.

  4. 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 { ... }
                   ^
    

  5. 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 { ... }
                          ^
    

  6. 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 { ... })
                          ^
    

  7. 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.

  8. 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 { ... }
                   ^
    

  9. 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 { ... }
                          ^
    

  10. def toString(): String
    Definition Classes
    ResultOfAnTypeInvocation → AnyRef → Any