TestCordapp.<init> - corda

corda / net.corda.testing.node / TestCordapp / <init>

# <init>

`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

DriverParameters.cordappsForAllNodes

NodeParameters.additionalCordapps

MockNetworkParameters.cordappsForAllNodes

MockNodeParameters.additionalCordapps