@DoNotImplement public Verifies
This interface asserts that the DSL at hand is capable of verifying its underlying construct(ledger/transaction).
@NotNull EnforceVerifyOrFail verifies()
Verifies the ledger/transaction, throws if the verification fails.
@NotNull EnforceVerifyOrFail failsWith(@Nullable java.lang.String expectedMessage)
Asserts that verifies() throws.
expectedMessage
- An optional string to be searched for in the raised exception.@NotNull EnforceVerifyOrFail fails()
Asserts that verifies
throws, with no condition on the exception message.
verifies
@NotNull EnforceVerifyOrFail fails with(@NotNull java.lang.String msg)
failsWith