mirror of
https://github.com/corda/corda.git
synced 2025-01-18 18:56:28 +00:00
Rename matcher
This commit is contained in:
parent
2992866269
commit
974db3a15b
@ -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
|
||||||
|
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user