Make the test pass.

This commit is contained in:
Andrzej Cichocki 2018-02-28 15:14:39 +00:00
parent b578b934f7
commit 90e8621324
No known key found for this signature in database
GPG Key ID: 21B3BCB0BD5B0832

View File

@ -52,6 +52,7 @@ class NodeTest {
val dataSourceProperties = makeTestDataSourceProperties() val dataSourceProperties = makeTestDataSourceProperties()
val databaseConfig = DatabaseConfig() val databaseConfig = DatabaseConfig()
val configuration = rigorousMock<AbstractNodeConfiguration>().also { val configuration = rigorousMock<AbstractNodeConfiguration>().also {
doReturn(null).whenever(it).relay
doReturn(nodeAddress).whenever(it).p2pAddress doReturn(nodeAddress).whenever(it).p2pAddress
doReturn(nodeName).whenever(it).myLegalName doReturn(nodeName).whenever(it).myLegalName
doReturn(null).whenever(it).notary // Don't add notary identity. doReturn(null).whenever(it).notary // Don't add notary identity.