Skip to content

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

AbstractMockNetworkExtension

abstract class AbstractMockNetworkExtension :JupiterExtensionSupport

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

Constructors

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

Properties

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

Functions

Name Summary
getMockNetworkConfig abstract fun getMockNetworkConfig(extensionContext: ExtensionContext):MockNetworkConfig
Override to provide the MockNetworkConfig
getMockNetworkStoreKey abstract fun getMockNetworkStoreKey():String
getNamespace abstract fun getNamespace(): Namespace
startNatework fun startNatework(extensionContext: ExtensionContext):Unit
Start the Corda MockNetwork
stopNetwork fun stopNetwork(extensionContext: ExtensionContext):Unit
Stop the Corda MockNetwork

Inherited Functions

Name Summary
findNAnnotatedFieldValue open fun <T :Class<*>, A :Class<outAnnotation>, F> findNAnnotatedFieldValue(testClass:T, annotationClass:A, fieldClass:Class<F>, instanceFields:Boolean= false):F?
getFieldValue open fun <T> getFieldValue(testInstance:Any?, field:Field):T?
getRequiredTestClass open fun getRequiredTestClass(context: ExtensionContext):Class<*>
isAnnotatedWithAndOfType open fun isAnnotatedWithAndOfType(field:Field, annotation:Class<outAnnotation>, fieldType:Class<*>):Boolean

Inheritors

Name Summary
MockNetworkExtension class MockNetworkExtension :AbstractMockNetworkExtension, ParameterResolver, BeforeAllCallback, AfterAllCallback
Base class for extensions that wish to provide a Corda MockNetwork throughout test suite execution