mirror of
https://github.com/corda/corda.git
synced 2025-01-18 10:46:38 +00:00
Rename matcher
This commit is contained in:
parent
2992866269
commit
974db3a15b
@ -44,7 +44,7 @@ class FinalityFlowTests : WithFinality {
|
||||
aliceNode.finalise(stx),
|
||||
willReturn(
|
||||
requiredSignatures(1)
|
||||
and transactionVisibleTo(bobNode)))
|
||||
and visibleTo(bobNode)))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user