Ledger DSL
This is the class that defines the syntactic sugar of the ledger Test DSL and delegates to the contained interpreter, and what is actually used in ledger { (...) }
. Add convenience functions here, or if you want to extend the DSL functionality then first add your primitive to LedgerDSLInterpreter and then add the convenience defaults/extension methods here.
Functions
Creates and adds a transaction to the ledger.
Creates a local scoped copy of the ledger.
Creates and adds a transaction to the ledger that will not be verified by verifies.
Adds an attachment to the ledger.
Asserts that verifies throws, with no condition on the exception message.
Asserts that verifies() throws.
Retrieves the output TransactionState based on the label.
Retrieves an output previously defined by TransactionDSLInterpreter._output with a label passed in.
Retrieves an output previously defined by TransactionDSLInterpreter._output with a label passed in.
Retrieves an output previously defined by TransactionDSLInterpreter.output with a label passed in.
Creates and adds a transaction to the ledger.
Creates and adds a transaction to the ledger that will not be verified by verifies.
Verifies the ledger/transaction, throws if the verification fails.