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),
willReturn(
requiredSignatures(1)
and transactionVisibleTo(bobNode)))
and visibleTo(bobNode)))
}
@Test

View File

@ -28,7 +28,7 @@ interface WithFinality : WithMockNet {
//endregion
//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 fun invoke(actual: SignedTransaction) =
equalTo(actual)(other.getValidatedTransaction(actual))