Make the shell test pass when it happens to find the Integer constructor (#4187)

This commit is contained in:
Christian Sailer 2018-11-07 16:37:42 +00:00 committed by GitHub
parent 459b330ebd
commit df954d36d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ class InteractiveShellTest {
@Suppress("UNUSED")
class FlowA(val a: String) : FlowLogic<String>() {
constructor(b: Int) : this(b.toString())
constructor(b: Int?) : this(b.toString())
constructor(b: Int?, c: String) : this(b.toString() + c)
constructor(amount: Amount<Currency>) : this(amount.toString())
constructor(pair: Pair<Amount<Currency>, 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)