Package-level declarations

Types

Link copied to clipboard
sealed class DatabaseRule
Link copied to clipboard
class GlobalDatabaseRule(val databaseSchemas: List<String> = emptyList()) : DatabaseRule
Link copied to clipboard
abstract class IntegrationTest

Base class for all integration tests that require common setup and/or teardown. eg. serialization, database schema creation and data population / clean-up

Link copied to clipboard
Link copied to clipboard
class LocalDatabaseRule(val databaseSchemas: List<String> = emptyList()) : DatabaseRule
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())
Link copied to clipboard

Properties

Link copied to clipboard
val IS_OPENJ9: <Error class: unknown class>
Link copied to clipboard

Functions

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

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
fun <Error class: unknown class>.chooseIdentityAndCert(): <Error class: unknown class>

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: (<Error class: unknown class>) -> <Error class: unknown class>?, wellKnownPartyFromAnonymous: (<Error class: unknown class>) -> <Error class: unknown class>?, schemaService: <Error class: unknown class> = NodeSchemaService(), internalSchemas: Set<<Error class: unknown class>> = NodeSchemaService().internalSchemas.toSet(), cacheFactory: <Error class: unknown class> = TestingNamedCacheFactory(), ourName: <Error class: unknown class> = 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, signatureScheme: <Error class: unknown class> = X509Utilities.DEFAULT_TLS_SIGNATURE_SCHEME): <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: <Error class: unknown class>, 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<<Error class: unknown class>>, attachments: List<<Error class: unknown class>>, outputs: List<<Error class: unknown class><out <Error class: unknown class>>>, commands: List<<Error class: unknown class><out <Error class: unknown class>>>, notary: <Error class: unknown class>?, timeWindow: <Error class: unknown class>?, legacyAttachments: List<<Error class: unknown class>> = emptyList(), privacySalt: <Error class: unknown class> = PrivacySalt(), digestService: <Error class: unknown class> = DigestService.default): <Error class: unknown class>
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: <Error class: unknown class>, 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: <Error class: unknown class> = CordaX500Name("MegaCorp", "London", "GB")): <Error class: unknown class>
Link copied to clipboard
fun <Error class: unknown class>.toDatabaseSchemaName(): <Error class: unknown class>
Link copied to clipboard
fun <Error class: unknown class>.toDatabaseSchemaNames(vararg postfixes: String): List<String>
Link copied to clipboard
fun <Error class: unknown class>.useSslRpcOverrides(): Map<String, String>
Link copied to clipboard
fun <Error class: unknown class>.withOpenSsl(useOpenSsl: Boolean): <Error class: unknown class>
Link copied to clipboard
fun <R> withTestSerializationEnvIfNotSet(block: () -> R): R

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