com.github.manosbatsis.corda.testacles.mocknetwork / MockNetworkHelper / <init>
<init>¶
MockNetworkHelper(mockNetworkConfig:
MockNetworkConfig
)
Used to create and start/stop a Corda MockNetwork
.
Note that according to Corda’s InternalMockNetwork
,
“Using more than one mock network simultaneously is not supported”.
It is recommended to annotate your test suite
classes or methods with ResourceLock
as shown bellow.
That said, you shouldn’t need to do that when using MockNetworkExtension
.
@ResourceLock(MockNetworkHelper.RESOURCE_LOCK)