Skip to content

com.github.manosbatsis.corda.testacles.mocknetwork.jupiter / MockNetworkExtension

MockNetworkExtension

class MockNetworkExtension :AbstractMockNetworkExtension, ParameterResolver, BeforeAllCallback, AfterAllCallback

Base class for extensions that wish to provide a Corda MockNetwork throughout test suite execution

Constructors

Name Summary
<init> MockNetworkExtension()
Base class for extensions that wish to provide a Corda MockNetwork throughout test suite execution

Inherited Properties

Name Summary
mockNetworkHelper lateinit var mockNetworkHelper:MockNetworkHelper
started var started:Boolean

Functions

Name Summary
afterAll fun afterAll(extensionContext: ExtensionContext):Unit
Stop the Corda MockNetwork
beforeAll fun beforeAll(extensionContext: ExtensionContext):Unit
Start the Corda MockNetwork
getMockNetworkConfig fun getMockNetworkConfig(extensionContext: ExtensionContext):MockNetworkConfig
Override to provide the MockNetworkConfig
getMockNetworkStoreKey fun getMockNetworkStoreKey():String
getNamespace fun getNamespace(): Namespace
resolveParameter fun resolveParameter(parameterContext: ParameterContext?, extensionContext: ExtensionContext?):NodeHandles?
supportsParameter fun supportsParameter(parameterContext: ParameterContext?, extensionContext: ExtensionContext?):Boolean

Inherited Functions

Name Summary
startNatework fun startNatework(extensionContext: ExtensionContext):Unit
Start the Corda MockNetwork
stopNetwork fun stopNetwork(extensionContext: ExtensionContext):Unit
Stop the Corda MockNetwork