mirror of
https://github.com/corda/corda.git
synced 2024-12-19 13:08:04 +00:00
test dsl: Comment full stops
This commit is contained in:
parent
26d8973746
commit
0cf54d1c1f
@ -39,7 +39,7 @@ class CashTests {
|
||||
}
|
||||
tweak {
|
||||
output { outState }
|
||||
// No command commanduments
|
||||
// No command arguments
|
||||
this `fails with` "required com.r3corda.contracts.asset.FungibleAsset.Commands.Move command"
|
||||
}
|
||||
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 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
|
||||
*/
|
||||
|
@ -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
|
||||
* 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 {
|
||||
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)
|
||||
/**
|
||||
* 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) {
|
||||
val transaction = ledgerInterpreter.unverifiedTransaction(null) {
|
||||
|
Loading…
Reference in New Issue
Block a user