TestCordapp

abstract class TestCordapp

Encapsulates a CorDapp that exists on the current classpath, which can be pulled in for testing. Use TestCordapp.findCordapp to locate an existing CorDapp.

This is a replacement API to DriverParameters.extraCordappPackagesToScan and MockNetwork.cordappPackages as they create custom jars which do not preserve any CorDapp metadata.

See also

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val config: Map<String, Any>

Returns the config for on this CorDapp, defaults to empty if not specified.

Functions

Link copied to clipboard
abstract fun asSigned(): TestCordapp

Returns a copy of this TestCordapp signed with a development signing key. The same signing key will be used for all signed TestCordapps. If the CorDapp jar is already signed, then the new jar created will its signing key replaced by the development key.

Link copied to clipboard
abstract fun withConfig(config: Map<String, Any>): TestCordapp

Returns a copy of this TestCordapp but with the specified CorDapp config.