- JDK 1.8 latest version
- IntelliJ latest version (2017.1)( as of writing)
- git
- Clone this repo
- Open the repo in IntelliJ
- Import gradle project and wait for IntelliJ to index
- Navigate to the unit tests
src/test/kotlin/net/corda/training
- Start with the state tests (You'll need to edit
IOUState.kt
) - Move on to the contract tests (You'll need to edit
IOUContract.kt
) - Move onto the flow tests (Issue, transfer, then Settle)
When running the flow tests, if you get a Quasar instrumention error then add:
-ea -javaagent:lib/quasar.jar
To the VM args property in the default run configuration for JUnit in IntelliJ.
To run the unit tests use the Green arrow in IntelliJ next to the test definition.
Use the instructions above each unit test to complete the code in the required file (e.g. IOUState.kt
) to get the unit tests to pass.
Solutions are available here.