MockPDCClient

class MockPDCClient(calls: MockMethodCall<*, *>) : PDCClient

PDC client implementation whose methods are mocked.

Parameters

calls

The sequence of expected mock method calls to be called before the client is closed

Constructors

Link copied to clipboard
constructor(vararg calls: MockMethodCall<*, *>)

Properties

Link copied to clipboard

Reports whether the client was closed.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open suspend override fun collectParcels(nonceSigners: Array<Signer>, streamingMode: StreamingMode): Flow<ParcelCollection>
Link copied to clipboard
open suspend override fun deliverParcel(parcelSerialized: ByteArray, deliverySigner: Signer)
Link copied to clipboard
open suspend override fun preRegisterNode(nodePublicKey: PublicKey): PrivateNodeRegistrationRequest
Link copied to clipboard
open suspend override fun registerNode(pnrrSerialized: ByteArray): PrivateNodeRegistration