Fails

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Fails(expected: KClass<*>)

Indicates that a test function is expected to fail with the given exception type.

Constructors

Link copied to clipboard
fun Fails(expected: KClass<*>)

Properties

Link copied to clipboard
val expected: KClass<*>

The KClass of the expected Throwable.

Sources

Link copied to clipboard