com.r3corda.core.testing / AbstractTransactionForTest

AbstractTransactionForTest

abstract class AbstractTransactionForTest


Constructors

<init> AbstractTransactionForTest()

Properties

attachments val attachments: ArrayList<SecureHash>
commands val commands: ArrayList<Command>
outStates val outStates: ArrayList<LabeledOutput>
signers val signers: LinkedHashSet<PublicKey>
type val type: General

Functions

addCommand fun addCommand(cmd: Command): Unit
arg fun arg(vararg keys: PublicKey, c: () -> CommandData): Unit
fun arg(key: PublicKey, c: CommandData): Unit
attachment fun attachment(attachmentID: SecureHash): Unit
commandsToAuthenticatedObjects fun commandsToAuthenticatedObjects(): List<AuthenticatedObject<CommandData>>
output open fun output(label: String? = null, s: () -> ContractState): <ERROR CLASS>
open fun output(label: String? = null, s: ContractState): <ERROR CLASS>
timestamp fun timestamp(time: Instant): Unit
fun timestamp(data: TimestampCommand): Unit
transaction fun transaction(body: TransactionForTest.() -> LastLineShouldTestForAcceptOrFailure): Unit

Inheritors

TransactionForTest open class TransactionForTest : AbstractTransactionForTest
WireTransactionDSL inner class WireTransactionDSL<T : ContractState> : AbstractTransactionForTest