android-components / mozilla.components.support.test / expectException

expectException

inline fun <reified T : Throwable> expectException(clazz: KClass<T>, block: () -> Unit): Unit (source)

Expect block to throw an exception. Otherwise fail the test (junit).