From 974db3a15b543882bfd3406e043043305337a0f4 Mon Sep 17 00:00:00 2001 From: Dominic Fox Date: Thu, 19 Jul 2018 12:00:02 +0100 Subject: [PATCH] Rename matcher --- core/src/test/kotlin/net/corda/core/flows/FinalityFlowTests.kt | 2 +- .../src/test/kotlin/net/corda/core/flows/mixins/WithFinality.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/kotlin/net/corda/core/flows/FinalityFlowTests.kt b/core/src/test/kotlin/net/corda/core/flows/FinalityFlowTests.kt index 20f1c9928c..b352d3f49f 100644 --- a/core/src/test/kotlin/net/corda/core/flows/FinalityFlowTests.kt +++ b/core/src/test/kotlin/net/corda/core/flows/FinalityFlowTests.kt @@ -44,7 +44,7 @@ class FinalityFlowTests : WithFinality { aliceNode.finalise(stx), willReturn( requiredSignatures(1) - and transactionVisibleTo(bobNode))) + and visibleTo(bobNode))) } @Test diff --git a/core/src/test/kotlin/net/corda/core/flows/mixins/WithFinality.kt b/core/src/test/kotlin/net/corda/core/flows/mixins/WithFinality.kt index fe1811520d..ec0b915b1e 100644 --- a/core/src/test/kotlin/net/corda/core/flows/mixins/WithFinality.kt +++ b/core/src/test/kotlin/net/corda/core/flows/mixins/WithFinality.kt @@ -28,7 +28,7 @@ interface WithFinality : WithMockNet { //endregion //region Matchers - fun transactionVisibleTo(other: StartedNode<*>) = object : Matcher { + fun visibleTo(other: StartedNode<*>) = object : Matcher { override val description = "has a transaction visible to ${other.info.singleIdentity()}" override fun invoke(actual: SignedTransaction) = equalTo(actual)(other.getValidatedTransaction(actual))