createMockCordaService

fun <T> createMockCordaService(serviceHub: MockServices, serviceConstructor: (<Error class: unknown class>) -> T): T

Function which can be used to create a mock CordaService for use within testing, such as an Oracle.