corda / net.corda.testing.node / TestCordapp / findCordapp


@JvmStatic fun findCordapp(scanPackage: String): TestCordapp

Scans the current classpath to find the CorDapp that contains the given package. All the CorDapp's metdata present in its MANIFEST are inherited. If more than one location containing the package is found then an exception is thrown. An exception is also thrown if no CorDapp is found.


scanPackage - The package name used to find the CorDapp. This does not need to be the root package of the CorDapp.