From df954d36d223689655429ccb8de09fb115b86a26 Mon Sep 17 00:00:00 2001 From: Christian Sailer Date: Wed, 7 Nov 2018 16:37:42 +0000 Subject: [PATCH] Make the shell test pass when it happens to find the Integer constructor (#4187) --- .../test/kotlin/net/corda/tools/shell/InteractiveShellTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/shell/src/test/kotlin/net/corda/tools/shell/InteractiveShellTest.kt b/tools/shell/src/test/kotlin/net/corda/tools/shell/InteractiveShellTest.kt index e184c6ae86..b7b76ef401 100644 --- a/tools/shell/src/test/kotlin/net/corda/tools/shell/InteractiveShellTest.kt +++ b/tools/shell/src/test/kotlin/net/corda/tools/shell/InteractiveShellTest.kt @@ -29,7 +29,7 @@ class InteractiveShellTest { @Suppress("UNUSED") class FlowA(val a: String) : FlowLogic() { - constructor(b: Int) : this(b.toString()) + constructor(b: Int?) : this(b.toString()) constructor(b: Int?, c: String) : this(b.toString() + c) constructor(amount: Amount) : this(amount.toString()) constructor(pair: Pair, SecureHash.SHA256>) : this(pair.toString()) @@ -115,7 +115,7 @@ class InteractiveShellTest { "[b: String[]]: missing parameter b", "[b: Integer, c: String]: missing parameter b", "[a: String]: missing parameter a", - "[b: int]: missing parameter b" + "[b: Integer]: missing parameter b" ) val errors = e.errors.toHashSet() errors.removeAll(correct)