com.r3corda.core.testing / TransactionForTest

TransactionForTest

open class TransactionForTest : AbstractTransactionForTest


Constructors

<init> TransactionForTest()

Inherited 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

accepts fun accepts(time: Instant = TEST_TX_TIME): LastLineShouldTestForAcceptOrFailure
chain fun chain(vararg outputLabels: String, body: TransactionForTest.() -> LastLineShouldTestForAcceptOrFailure): TransactionForTest
equals open fun equals(other: Any?): Boolean
fails requirement infix fun fails requirement(msg: String): LastLineShouldTestForAcceptOrFailure

Used to confirm that the test, when (implicitly) run against the .verify() method, fails with the text of the message

failsRequirement fun failsRequirement(msg: String): LastLineShouldTestForAcceptOrFailure
hashCode open fun hashCode(): Int
input fun input(s: () -> ContractState): Unit
fun input(s: ContractState): Unit
rejects fun rejects(withMessage: String? = null, time: Instant = TEST_TX_TIME): LastLineShouldTestForAcceptOrFailure
runCommandsAndVerify fun runCommandsAndVerify(time: Instant): Unit
toString open fun toString(): String
tweak fun tweak(body: TransactionForTest.() -> LastLineShouldTestForAcceptOrFailure): LastLineShouldTestForAcceptOrFailure

Inherited 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