From 330db73c5d23d7d5a6f5ba738a6ac1ac99528822 Mon Sep 17 00:00:00 2001 From: Michele Sollecito Date: Mon, 11 Sep 2017 13:47:11 +0100 Subject: [PATCH] [CORDA-460]: Removed usages of `IdentityService.registerIdentity(party: PartyAndCertificate)` (#1472) --- .../kotlin/net/corda/node/messaging/TwoPartyTradeFlowTests.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/src/test/kotlin/net/corda/node/messaging/TwoPartyTradeFlowTests.kt b/node/src/test/kotlin/net/corda/node/messaging/TwoPartyTradeFlowTests.kt index 4d0c8c60da..e117e06ab1 100644 --- a/node/src/test/kotlin/net/corda/node/messaging/TwoPartyTradeFlowTests.kt +++ b/node/src/test/kotlin/net/corda/node/messaging/TwoPartyTradeFlowTests.kt @@ -205,7 +205,7 @@ class TwoPartyTradeFlowTests { val allNodes = listOf(notaryNode, aliceNode, bobNode, bankNode) allNodes.forEach { node -> node.database.transaction { - allNodes.map { it.services.myInfo.legalIdentityAndCert }.forEach { identity -> node.services.identityService.registerIdentity(identity) } + allNodes.map { it.services.myInfo.legalIdentityAndCert }.forEach { identity -> node.services.identityService.verifyAndRegisterIdentity(identity) } } } @@ -619,7 +619,7 @@ class TwoPartyTradeFlowTests { val allNodes = listOf(notaryNode, aliceNode, bobNode, bankNode) allNodes.forEach { node -> node.database.transaction { - allNodes.map { it.services.myInfo.legalIdentityAndCert }.forEach { identity -> node.services.identityService.registerIdentity(identity) } + allNodes.map { it.services.myInfo.legalIdentityAndCert }.forEach { identity -> node.services.identityService.verifyAndRegisterIdentity(identity) } } }