From 9ec1ec786fc2d2c2c72e34768f6b7e654dce2998 Mon Sep 17 00:00:00 2001 From: Andras Slemmer Date: Thu, 16 Jun 2016 17:17:53 +0100 Subject: [PATCH] contracts: remove TODO --- .../src/main/kotlin/com/r3corda/contracts/testing/TestUtils.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/contracts/src/main/kotlin/com/r3corda/contracts/testing/TestUtils.kt b/contracts/src/main/kotlin/com/r3corda/contracts/testing/TestUtils.kt index 4b7a96532e..eb575cf7b1 100644 --- a/contracts/src/main/kotlin/com/r3corda/contracts/testing/TestUtils.kt +++ b/contracts/src/main/kotlin/com/r3corda/contracts/testing/TestUtils.kt @@ -46,8 +46,6 @@ fun generateState(notary: Party = DUMMY_NOTARY) = DummyContract.State(Random().n // contract.accepts() -> should pass // contract `fails requirement` "some substring of the error message" // } -// -// TODO: Make it impossible to forget to test either a failure or an accept for each transaction{} block infix fun Cash.State.`owned by`(owner: PublicKey) = copy(owner = owner) infix fun Cash.State.`issued by`(party: Party) = copy(amount = Amount>(amount.quantity, issuanceDef.copy(issuer = deposit.copy(party = party))))