testdsl: Add failsWith to Ledger

This commit is contained in:
Andras Slemmer
2016-07-08 18:31:39 +01:00
parent cd0299f650
commit 9bb8439dc3
9 changed files with 529 additions and 52 deletions

View File

@ -88,7 +88,7 @@ class MockNetwork(private val networkSendManuallyPumped: Boolean = false,
// Nothing to do
}
override fun generateKeyPair(): KeyPair? = keyPair ?: super.generateKeyPair()
override fun generateKeyPair(): KeyPair = keyPair ?: super.generateKeyPair()
// It's OK to not have a network map service in the mock network.
override fun noNetworkMapConfigured() = Futures.immediateFuture(Unit)