SHARE
TWEET

Untitled

a guest Jun 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Before
  2. fun setup() {
  3.     mockNetwork = MockNetwork(listOf("net.corda.training"),
  4.             notarySpecs = listOf(MockNetworkNotarySpec(CordaX500Name("Notary","London","GB"))))
  5.     a = mockNetwork.createNode(MockNodeParameters())
  6.     b = mockNetwork.createNode(MockNodeParameters())
  7.     val startedNodes = arrayListOf(a, b)
  8.     startedNodes.forEach { it.registerInitiatedFlow(IOUIssueFlowResponder::class.java) }
  9.     mockNetwork.runNetwork()
  10. }
  11. @After
  12. fun tearDown() {
  13.     mockNetwork.stopNodes()
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top