mirror of
https://github.com/corda/corda.git
synced 2025-02-18 16:40:55 +00:00
docs: Add note on self-issuance example in integtest tutorial
This commit is contained in:
parent
220ccdbe13
commit
2bb1ecdfc1
@ -5,6 +5,8 @@ Integration testing involves bringing up nodes locally and testing invariants ab
|
||||
|
||||
In this tutorial we will bring up three nodes Alice, Bob and a Notary. Alice will issue Cash to Bob, then Bob will send this Cash back to Alice. We will see how to test some simple deterministic and nondeterministic invariants in the meantime.
|
||||
|
||||
(Note that this example where Alice is self-issuing Cash is purely for demonstration purposes, in reality Cash would be issued by a bank and subsequently passed around.)
|
||||
|
||||
In order to spawn nodes we will use the Driver DSL. This DSL allows one to start up node processes from code. It manages a network map service and safe shutting down of nodes in the background.
|
||||
|
||||
.. literalinclude:: example-code/src/integration-test/kotlin/net/corda/docs/IntegrationTestingTutorial.kt
|
||||
|
Loading…
x
Reference in New Issue
Block a user