Rename matcher

This commit is contained in:
Dominic Fox 2018-07-19 12:00:02 +01:00
parent 2992866269
commit 974db3a15b
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class FinalityFlowTests : WithFinality {
aliceNode.finalise(stx), aliceNode.finalise(stx),
willReturn( willReturn(
requiredSignatures(1) requiredSignatures(1)
and transactionVisibleTo(bobNode))) and visibleTo(bobNode)))
} }
@Test @Test

View File

@ -28,7 +28,7 @@ interface WithFinality : WithMockNet {
//endregion //endregion
//region Matchers //region Matchers
fun transactionVisibleTo(other: StartedNode<*>) = object : Matcher<SignedTransaction> { fun visibleTo(other: StartedNode<*>) = object : Matcher<SignedTransaction> {
override val description = "has a transaction visible to ${other.info.singleIdentity()}" override val description = "has a transaction visible to ${other.info.singleIdentity()}"
override fun invoke(actual: SignedTransaction) = override fun invoke(actual: SignedTransaction) =
equalTo(actual)(other.getValidatedTransaction(actual)) equalTo(actual)(other.getValidatedTransaction(actual))