Package-level declarations

Types

Link copied to clipboard
object LogHelper

A configuration helper that allows modifying the log level for specific loggers

Link copied to clipboard
Link copied to clipboard
class MockCordappProvider(cordappLoader: <Error class: unknown class>, attachmentStorage: <Error class: unknown class>, cordappConfigProvider: MockCordappConfigProvider = MockCordappConfigProvider())

Properties

Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T : Any> T.amqpSpecific(reason: String, function: () -> Unit)
Link copied to clipboard

Returns the party identity of the first identity on the node. Until we have proper handling of multiple identities per node, for tests we use the first identity as special one. TODO: Should be removed after multiple identities are introduced.

Link copied to clipboard

Until we have proper handling of multiple identities per node, for tests we use the first identity as special one. TODO: Should be removed after multiple identities are introduced.

Link copied to clipboard
fun configureDatabase(hikariProperties: Properties, databaseConfig: <Error class: unknown class>, wellKnownPartyFromX500Name: (CordaX500Name) -> Party?, wellKnownPartyFromAnonymous: (AbstractParty) -> Party?, schemaService: <Error class: unknown class> = NodeSchemaService(), internalSchemas: Set<MappedSchema> = NodeSchemaService().internalSchemas, cacheFactory: NamedCacheFactory = TestingNamedCacheFactory(), ourName: CordaX500Name = TestIdentity(ALICE_NAME, 70).name, runMigrationScripts: Boolean = true, allowHibernateToManageAppSchema: Boolean = true): <Error class: unknown class>

Convenience method for configuring a database for some tests.

Link copied to clipboard
fun createDevIntermediateCaCertPath(rootCaName: X500Principal = defaultRootCaName, intermediateCaName: X500Principal = defaultIntermediateCaName): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>

Returns a pair of CertificateAndKeyPairs, the first being the root CA and the second the intermediate CA.

Link copied to clipboard
fun createDevNodeCaCertPath(legalName: CordaX500Name, nodeKeyPair: KeyPair = Crypto.generateKeyPair(X509Utilities.DEFAULT_TLS_SIGNATURE_SCHEME), rootCaName: X500Principal = defaultRootCaName, intermediateCaName: X500Principal = defaultIntermediateCaName): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>, <Error class: unknown class>>

Returns a triple of CertificateAndKeyPairs, the first being the root CA, the second the intermediate CA and the third the node CA.

Link copied to clipboard
fun createWireTransaction(inputs: List<StateRef>, attachments: List<SecureHash>, outputs: List<TransactionState<*>>, commands: List<Command<*>>, notary: Party?, timeWindow: TimeWindow?, legacyAttachments: List<SecureHash> = emptyList(), privacySalt: PrivacySalt = PrivacySalt(), digestService: DigestService = DigestService.default): WireTransaction
Link copied to clipboard
fun fakeAttachment(filePath: String, content: String, manifestAttributes: Map<String, String> = emptyMap()): ByteArray

Convenience method for creating a fake attachment containing a file with some content.

fun fakeAttachment(filePath1: String, content1: String, filePath2: String, content2: String, manifestAttributes: Map<String, String> = emptyMap()): ByteArray
Link copied to clipboard
fun fixedCrlSource(crls: Set<X509CRL>): <Error class: unknown class>
Link copied to clipboard
fun <Error class: unknown class>.fromUserList(id: AuthServiceId, users: List<<Error class: unknown class>>): <Error class: unknown class>

Instantiate RPCSecurityManager initialised with users data from a list of User

Link copied to clipboard
inline fun <T : Any> T.kryoSpecific(reason: String, function: () -> Unit)
Link copied to clipboard
fun p2pSslOptions(path: Path, name: CordaX500Name = CordaX500Name("MegaCorp", "London", "GB")): <Error class: unknown class>
Link copied to clipboard
fun <Error class: unknown class>.useSslRpcOverrides(): Map<String, String>
Link copied to clipboard
fun <R> withTestSerializationEnvIfNotSet(block: () -> R): R

If effectiveSerializationEnv is not set, runs the block with a new SerializationEnvironmentRule.