Made CashSelectionTest a unit test by using mock network. (#3570)

Also includes adding a default value of emptyList() to InternalMockNetwork.cordappPackages
This commit is contained in:
Shams Asari
2018-07-12 11:55:51 +01:00
committed by GitHub
parent a4355ce198
commit f4a248f81f
14 changed files with 149 additions and 152 deletions

View File

@ -9,7 +9,7 @@ class InternalMockNetworkTests {
fun `does not leak serialization env if init fails`() {
val e = Exception("didn't work")
assertThatThrownBy {
object : InternalMockNetwork(emptyList()) {
object : InternalMockNetwork() {
override fun createNotaries() = throw e
}
}.isSameAs(e)