com.github.manosbatsis.corda.testacles.mocknetwork.config / MockNetworkConfig / <init>
<init>¶
MockNetworkConfig(names:
CordaX500Names
, cordappPackages:
List
<
String
>, cordappProjectPackage:
String
? = null, cordappPackageConfigs:
Map
<
String
,
Map
<
String
,
Any
>> = emptyMap(), threadPerNode:
Boolean
= true, networkParameters: NetworkParameters = testNetworkParameters(minimumPlatformVersion = 1), clearEnv:
Boolean
= false)
Alternative constructor that builds nodes based on CordaX500Names.
MockNetworkConfig(names:
OrgNames
, cordappPackages:
List
<
String
>, cordappProjectPackage:
String
? = null, cordappPackageConfigs:
Map
<
String
,
Map
<
String
,
Any
>> = emptyMap(), threadPerNode:
Boolean
= true, networkParameters: NetworkParameters = testNetworkParameters(minimumPlatformVersion = 1), clearEnv:
Boolean
= false)
Alternative constructor that builds nodes based on OrgNames, i.e. one or more strings each one being an organization or X500 name.
If not an X500 name, a random locality/country will be selected.
MockNetworkConfig(numberOfNodes:
Int
, cordappPackages:
List
<
String
>, cordappProjectPackage:
String
? = null, cordappPackageConfigs:
Map
<
String
,
Map
<
String
,
Any
>> = emptyMap(), threadPerNode:
Boolean
= true, networkParameters: NetworkParameters = testNetworkParameters(minimumPlatformVersion = 1), clearEnv:
Boolean
= false)
Alternative constructor using the number of nodes needed.
The identity (i.e. CordaX500Name) for each will be given an organization name as Party1..PartyN along with a random locality/country.
MockNetworkConfig(mockNodeParametersList:
List
<MockNodeParameters>, cordappPackages:
List
<
String
>, cordappProjectPackage:
String
? = null, cordappPackageConfigs:
Map
<
String
,
Map
<
String
,
Any
>> = emptyMap(), threadPerNode:
Boolean
= true, networkParameters: NetworkParameters = testNetworkParameters(minimumPlatformVersion = 1), clearEnv:
Boolean
= false)