mirror of
https://github.com/corda/corda.git
synced 2024-12-23 23:02:29 +00:00
test dsl: Comment full stops
This commit is contained in:
parent
26d8973746
commit
0cf54d1c1f
@ -39,7 +39,7 @@ class CashTests {
|
|||||||
}
|
}
|
||||||
tweak {
|
tweak {
|
||||||
output { outState }
|
output { outState }
|
||||||
// No command commanduments
|
// No command arguments
|
||||||
this `fails with` "required com.r3corda.contracts.asset.FungibleAsset.Commands.Move command"
|
this `fails with` "required com.r3corda.contracts.asset.FungibleAsset.Commands.Move command"
|
||||||
}
|
}
|
||||||
tweak {
|
tweak {
|
||||||
|
@ -19,7 +19,7 @@ interface LedgerDSLInterpreter<R, out T : TransactionDSLInterpreter<R>> : Output
|
|||||||
/**
|
/**
|
||||||
* This is the class the top-level primitives deal with. It delegates all other primitives to the contained interpreter.
|
* This is the class the top-level primitives deal with. It delegates all other primitives to the contained interpreter.
|
||||||
* This way we have a decoupling of the DSL "AST" and the interpretation(s) of it. Note how the delegation forces
|
* This way we have a decoupling of the DSL "AST" and the interpretation(s) of it. Note how the delegation forces
|
||||||
* covariance of the TransactionInterpreter parameter
|
* covariance of the TransactionInterpreter parameter.
|
||||||
*
|
*
|
||||||
* TODO (Kotlin 1.1): Use type synonyms to make the type params less unwieldy
|
* TODO (Kotlin 1.1): Use type synonyms to make the type params less unwieldy
|
||||||
*/
|
*/
|
||||||
|
@ -36,7 +36,7 @@ import java.time.Instant
|
|||||||
* Put convenience functions in [TransactionDSL] instead. There are some cases where the overloads would clash with the
|
* Put convenience functions in [TransactionDSL] instead. There are some cases where the overloads would clash with the
|
||||||
* Interpreter interface, in these cases define a "backing" function in the interface instead (e.g. [_command]).
|
* Interpreter interface, in these cases define a "backing" function in the interface instead (e.g. [_command]).
|
||||||
*
|
*
|
||||||
* This way the responsibility of providing a nice frontend DSL and the implementation(s) are separated
|
* This way the responsibility of providing a nice frontend DSL and the implementation(s) are separated.
|
||||||
*/
|
*/
|
||||||
interface TransactionDSLInterpreter<R> : OutputStateLookup {
|
interface TransactionDSLInterpreter<R> : OutputStateLookup {
|
||||||
val ledgerInterpreter: LedgerDSLInterpreter<R, TransactionDSLInterpreter<R>>
|
val ledgerInterpreter: LedgerDSLInterpreter<R, TransactionDSLInterpreter<R>>
|
||||||
@ -56,7 +56,7 @@ class TransactionDSL<R, out T : TransactionDSLInterpreter<R>> (val interpreter:
|
|||||||
|
|
||||||
fun input(stateLabel: String) = input(retrieveOutputStateAndRef(ContractState::class.java, stateLabel).ref)
|
fun input(stateLabel: String) = input(retrieveOutputStateAndRef(ContractState::class.java, stateLabel).ref)
|
||||||
/**
|
/**
|
||||||
* Adds the passed in state as a non-verified transaction output to the ledger and adds that as an input
|
* Adds the passed in state as a non-verified transaction output to the ledger and adds that as an input.
|
||||||
*/
|
*/
|
||||||
fun input(state: ContractState) {
|
fun input(state: ContractState) {
|
||||||
val transaction = ledgerInterpreter.unverifiedTransaction(null) {
|
val transaction = ledgerInterpreter.unverifiedTransaction(null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user