com.github.manosbatsis.corda.testacles.mocknetwork.config / MockNetworkConfig
MockNetworkConfig¶
open class MockNetworkConfig :
CordappsConfig
Constructors¶
Name | Summary |
---|---|
<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. 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. 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) |
Properties¶
Name | Summary |
---|---|
clearEnv | val clearEnv: Boolean |
cordappPackageConfigs | open val cordappPackageConfigs: Map < String , Map < String , Any >> |
cordappPackages | open val cordappPackages: List < String > |
cordappProjectPackage | open val cordappProjectPackage: String ? |
mockNodeParametersList | val mockNodeParametersList: List <MockNodeParameters> |
networkParameters | val networkParameters: NetworkParameters |
threadPerNode | val threadPerNode: Boolean |
Inherited Functions¶
Name | Summary |
---|---|
buildCordappConfig | open fun buildCordappConfig(cordappPackage: String ): Map < String , Any >? Override to provide the Cordapp config for a target package. Defaults in looking for “$cordappPackage.config.properties” in the (test) classpath, as well as a matching entry in cordappPackageConfigs. |