public class TestCordapp
Encapsulates a CorDapp that exists on the current classpath, which can be pulled in for testing. Use TestCordapp.Companion.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.
TestCordapp.Companion.findCordapp
Modifier and Type | Class and Description |
---|---|
static class |
TestCordapp.Companion |
Modifier and Type | Field and Description |
---|---|
static TestCordapp.Companion |
Companion |
Constructor and Description |
---|
TestCordapp()
Encapsulates a CorDapp that exists on the current classpath, which can be pulled in for testing. Use
TestCordapp.Companion.findCordapp
to locate an existing CorDapp. |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getConfig()
Returns the config for on this CorDapp, defaults to empty if not specified.
|
TestCordapp |
withConfig(java.util.Map<java.lang.String,? extends java.lang.Object> config)
Returns a copy of this
class TestCordapp but with the specified CorDapp config. |
public static TestCordapp.Companion Companion
public TestCordapp()
Encapsulates a CorDapp that exists on the current classpath, which can be pulled in for testing. Use TestCordapp.Companion.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.
TestCordapp.Companion.findCordapp
public java.util.Map<java.lang.String,java.lang.Object> getConfig()
Returns the config for on this CorDapp, defaults to empty if not specified.
public TestCordapp withConfig(java.util.Map<java.lang.String,? extends java.lang.Object> config)
Returns a copy of this class TestCordapp
but with the specified CorDapp config.
class TestCordapp