mirror of
https://github.com/corda/corda.git
synced 2025-03-11 15:04:14 +00:00
Revert "core: Removed unused deprecated test functions"
This reverts commit 1c09ff86ed6803fcda6c76b6f5e323621c4b0e06.
This commit is contained in:
parent
eaf37e2e7a
commit
1f171a1ece
@ -286,6 +286,14 @@ class TransactionGroupDSL<T : ContractState>(private val stateType: Class<T>) {
|
|||||||
}
|
}
|
||||||
rootTxns.add(wtx)
|
rootTxns.add(wtx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated("Does not nest ", level = DeprecationLevel.ERROR)
|
||||||
|
fun roots(body: Roots.() -> Unit) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated("Use the vararg form of transaction inside roots", level = DeprecationLevel.ERROR)
|
||||||
|
fun transaction(body: WireTransactionDSL.() -> Unit) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun roots(body: Roots.() -> Unit) = Roots().apply { body() }
|
fun roots(body: Roots.() -> Unit) = Roots().apply { body() }
|
||||||
@ -306,6 +314,10 @@ class TransactionGroupDSL<T : ContractState>(private val stateType: Class<T>) {
|
|||||||
fun labelForTransaction(tx: WireTransaction): String? = txnToLabelMap[tx.id]
|
fun labelForTransaction(tx: WireTransaction): String? = txnToLabelMap[tx.id]
|
||||||
fun labelForTransaction(tx: LedgerTransaction): String? = txnToLabelMap[tx.id]
|
fun labelForTransaction(tx: LedgerTransaction): String? = txnToLabelMap[tx.id]
|
||||||
|
|
||||||
|
@Deprecated("Does not nest ", level = DeprecationLevel.ERROR)
|
||||||
|
fun transactionGroup(body: TransactionGroupDSL<T>.() -> Unit) {
|
||||||
|
}
|
||||||
|
|
||||||
fun toTransactionGroup() = TransactionGroup(
|
fun toTransactionGroup() = TransactionGroup(
|
||||||
txns.map { it.toLedgerTransaction(MOCK_IDENTITY_SERVICE, MockStorageService().attachments) }.toSet(),
|
txns.map { it.toLedgerTransaction(MOCK_IDENTITY_SERVICE, MockStorageService().attachments) }.toSet(),
|
||||||
rootTxns.map { it.toLedgerTransaction(MOCK_IDENTITY_SERVICE, MockStorageService().attachments) }.toSet()
|
rootTxns.map { it.toLedgerTransaction(MOCK_IDENTITY_SERVICE, MockStorageService().attachments) }.toSet()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user