mirror of
https://github.com/corda/corda.git
synced 2025-06-06 01:11:45 +00:00
RELEASE - Fix Cherry Pick
This commit is contained in:
parent
310f0daa37
commit
ad9d594fd3
@ -52,7 +52,7 @@ class InteractiveShellTest {
|
|||||||
private fun check(input: String, expected: String) {
|
private fun check(input: String, expected: String) {
|
||||||
var output: DummyFSM? = null
|
var output: DummyFSM? = null
|
||||||
InteractiveShell.runFlowFromString({ DummyFSM(it as FlowA).apply { output = this } }, input, FlowA::class.java, om)
|
InteractiveShell.runFlowFromString({ DummyFSM(it as FlowA).apply { output = this } }, input, FlowA::class.java, om)
|
||||||
assertEquals(expected, output!!.flowA.a, input)
|
assertEquals(expected, output!!.logic.a, input)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -83,5 +83,5 @@ class InteractiveShellTest {
|
|||||||
@Test
|
@Test
|
||||||
fun party() = check("party: \"${MEGA_CORP.name}\"", MEGA_CORP.name.toString())
|
fun party() = check("party: \"${MEGA_CORP.name}\"", MEGA_CORP.name.toString())
|
||||||
|
|
||||||
class DummyFSM(val logic: FlowA) : FlowStateMachine<Any?> by mock()
|
class DummyFSM(override val logic: FlowA) : FlowStateMachine<Any?> by mock()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user