corda / net.corda.testing.dsl / Verifies / failsWith

failsWith

open fun failsWith(expectedMessage: String?): EnforceVerifyOrFail

Asserts that verifies() throws.

Parameters

expectedMessage - An optional string to be searched for in the raised exception.