of

fun of(uri: URI): TestCordapp

URI location to a CorDapp jar. This may be a path on the local file system or a URL to an external resource.

A Path can be converted into a URI with Path.toUri.