fixed unit test TwoPartyTradeProtocolTests

This commit is contained in:
sofusmortensen 2016-03-24 12:36:18 +00:00
parent e5dbf5d2a8
commit 1156e5ef52

View File

@ -231,7 +231,8 @@ fun createKryo(k: Kryo = core.serialization.Kryo2()): Kryo {
if (kryo is core.serialization.Kryo2) { if (kryo is core.serialization.Kryo2) {
val classLoader = core.node.ClassLoader.create( attachments?.map { kryo.attachmentStorage?.openAttachment(it)!! } ) // .filterNotNull in order for TwoPartyTradeProtocolTests.checkDependenciesOfSaleAssetAreResolved test to run
val classLoader = core.node.ClassLoader.create( attachments?.map { kryo.attachmentStorage?.openAttachment(it) }.filterNotNull() )
kryo.useClassLoader(classLoader) { kryo.useClassLoader(classLoader) {
var outputs = kryo.readClassAndObject(input) as List<ContractState> var outputs = kryo.readClassAndObject(input) as List<ContractState>