mirror of
https://github.com/corda/corda.git
synced 2025-06-23 09:25:36 +00:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user