ResultOfAnTypeInvocation

final class ResultOfAnTypeInvocation[T](val clazzTag: ClassTag[T])

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

class Object
trait Matchable
class Any

Value members

Constructors

def this(c: Class[_])

Concrete methods

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

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.

infix inline def must(beThrownBy: ResultOfBeThrownBy)(implicit prettifier: Prettifier): Assertion

This method enables the following syntax:

This method enables the following syntax:

an [RuntimeException] must (be thrownBy { ... })
                     ^
infix inline def mustBe(thrownBy: ResultOfThrownByApplication)(implicit prettifier: Prettifier): Assertion

This method enables the following syntax:

This method enables the following syntax:

an [RuntimeException] mustBe thrownBy { ... }
                     ^
infix 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 { ... }
              ^

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.

infix inline def should(beThrownBy: ResultOfBeThrownBy)(implicit prettifier: Prettifier): Assertion

This method enables the following syntax:

This method enables the following syntax:

an [RuntimeException] should (be thrownBy { ... })
                     ^
infix inline def shouldBe(thrownBy: ResultOfThrownByApplication)(implicit prettifier: Prettifier): Assertion

This method enables the following syntax:

This method enables the following syntax:

an [RuntimeException] shouldBe thrownBy { ... }
                     ^
override def toString: String
Definition Classes
Any

Concrete fields

val clazz: Class[T]
val clazzTag: ClassTag[T]