Package net.corda.testing.dsl
Interface Verifies
-
- All Implemented Interfaces:
public interface Verifies
This interface asserts that the DSL at hand is capable of verifying its underlying construct(ledger/transaction).
-
-
Method Summary
Modifier and Type Method Description abstract EnforceVerifyOrFail
verifies()
Verifies the ledger/transaction, throws if the verification fails. EnforceVerifyOrFail
failsWith(String expectedMessage)
Asserts that verifies() throws. EnforceVerifyOrFail
fails()
Asserts that verifies throws, with no condition on the exception message. EnforceVerifyOrFail
fails with(String msg)
-
-
Method Detail
-
verifies
abstract EnforceVerifyOrFail verifies()
Verifies the ledger/transaction, throws if the verification fails.
-
failsWith
EnforceVerifyOrFail failsWith(String expectedMessage)
Asserts that verifies() throws.
- Parameters:
expectedMessage
- An optional string to be searched for in the raised exception.
-
fails
EnforceVerifyOrFail fails()
Asserts that verifies throws, with no condition on the exception message.
-
fails with
EnforceVerifyOrFail fails with(String msg)
-
-
-
-