mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
CORDA-2327 add attachments for missing dependencies (#4456)
* CORDA-2327 first draft - add attachments for missing dependencies * CORDA-2327 draft - fix unit tests * CORDA-2327 draft - some cleanup. * CORDA-2327 fix test * CORDA-2327 fix test * CORDA-2327 fix test * CORDA-2327 Address code review comments * CORDA-2327 fix api * Address code review comments * CORDA-2327 Address code review comments * CORDA-2327 Address code review comments * Fix merge * Address code review comments
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
package net.corda.docs.kotlin.tutorial.testdsl
|
||||
|
||||
import com.nhaarman.mockito_kotlin.doReturn
|
||||
import com.nhaarman.mockito_kotlin.mock
|
||||
import com.nhaarman.mockito_kotlin.whenever
|
||||
import net.corda.core.contracts.TransactionVerificationException
|
||||
import net.corda.core.identity.CordaX500Name
|
||||
@ -47,7 +48,7 @@ class TutorialTestDSL {
|
||||
// You can also use the alternative parameter initialIdentityName which accepts a
|
||||
// [CordaX500Name]
|
||||
megaCorp,
|
||||
rigorousMock<IdentityService>().also {
|
||||
mock<IdentityService>().also {
|
||||
doReturn(megaCorp.party).whenever(it).partyFromKey(megaCorp.publicKey)
|
||||
doReturn(null).whenever(it).partyFromKey(bigCorp.publicKey)
|
||||
doReturn(null).whenever(it).partyFromKey(alice.publicKey)
|
||||
|
Reference in New Issue
Block a user