corda / net.corda.testing.node / UnstartedMockNode / installCordaService

installCordaService

fun <T : SerializeAsToken> installCordaService(serviceClass: Class<T>): T

Install a custom test-only CordaService.

NOTE: There is no need to call this method if the service class is defined in the CorDapp and the TestCordapp API is used.

Return
the instance of the service object.