class MockAttachmentStorage
A mock implementation of AttachmentStorage for use within tests
MockAttachmentStorage()
A mock implementation of AttachmentStorage for use within tests |
val files: Map<<ERROR CLASS>, <ERROR CLASS><<ERROR CLASS>, ByteArray>>
A map of the currently stored files by their SecureHash |
fun getAttachmentIdAndBytes(jar: InputStream): <ERROR CLASS><<ERROR CLASS>, ByteArray> |
|
fun getLatestContractAttachments(contractClassName: String, minContractVersion: Int): List<<ERROR CLASS>> |
|
fun hasAttachment(attachmentId: <ERROR CLASS>): Boolean |
|
fun importAttachment(jar: InputStream): <ERROR CLASS> fun importAttachment(jar: InputStream, uploader: String, filename: String?): <ERROR CLASS> |
|
fun importContractAttachment(contractClassNames: List<<ERROR CLASS>>, uploader: String, jar: InputStream, attachmentId: <ERROR CLASS>? = null, signers: List<PublicKey> = emptyList()): <ERROR CLASS> fun importContractAttachment(attachmentId: <ERROR CLASS>, contractAttachment: <ERROR CLASS>): Unit |
|
fun importOrGetAttachment(jar: InputStream): <ERROR CLASS> |
|
fun openAttachment(id: <ERROR CLASS>): <ERROR CLASS>? |
|
fun queryAttachments(criteria: <ERROR CLASS>, sorting: <ERROR CLASS>?): List<<ERROR CLASS>> |