mirror of
https://github.com/corda/corda.git
synced 2025-01-29 15:43:55 +00:00
Make the shell test pass when it happens to find the Integer constructor (#4187)
This commit is contained in:
parent
459b330ebd
commit
df954d36d2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user