Skip to content

Commit

Permalink
Rename matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
r3domfox committed Jul 19, 2018
1 parent 2992866 commit 974db3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FinalityFlowTests : WithFinality {
aliceNode.finalise(stx),
willReturn(
requiredSignatures(1)
and transactionVisibleTo(bobNode)))
and visibleTo(bobNode)))
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 974db3a

Please sign in to comment.