mirror of
https://github.com/corda/corda.git
synced 2025-02-06 11:09:18 +00:00
Fix windows build (#4335)
This commit is contained in:
parent
38438eadcd
commit
ec42d30661
@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
|
|||||||
import com.fasterxml.jackson.databind.ObjectMapper
|
import com.fasterxml.jackson.databind.ObjectMapper
|
||||||
import com.fasterxml.jackson.databind.type.TypeFactory
|
import com.fasterxml.jackson.databind.type.TypeFactory
|
||||||
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
|
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
|
||||||
|
import com.nhaarman.mockito_kotlin.eq
|
||||||
import com.nhaarman.mockito_kotlin.mock
|
import com.nhaarman.mockito_kotlin.mock
|
||||||
import com.nhaarman.mockito_kotlin.verify
|
import com.nhaarman.mockito_kotlin.verify
|
||||||
import com.nhaarman.mockito_kotlin.whenever
|
import com.nhaarman.mockito_kotlin.whenever
|
||||||
@ -227,7 +228,7 @@ class InteractiveShellTest {
|
|||||||
|
|
||||||
InteractiveShell.setOutputFormat(InteractiveShell.OutputFormat.JSON)
|
InteractiveShell.setOutputFormat(InteractiveShell.OutputFormat.JSON)
|
||||||
InteractiveShell.runRPCFromString(command, printWriter, invocationContext, cordaRpcOps, inputObjectMapper)
|
InteractiveShell.runRPCFromString(command, printWriter, invocationContext, cordaRpcOps, inputObjectMapper)
|
||||||
verify(printWriter).println(NODE_INFO_JSON_PAYLOAD)
|
verify(printWriter).println(NODE_INFO_JSON_PAYLOAD.replace("\n", System.lineSeparator()))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -241,11 +242,11 @@ class InteractiveShellTest {
|
|||||||
|
|
||||||
InteractiveShell.setOutputFormat(InteractiveShell.OutputFormat.JSON)
|
InteractiveShell.setOutputFormat(InteractiveShell.OutputFormat.JSON)
|
||||||
InteractiveShell.runRPCFromString(command, printWriter, invocationContext, cordaRpcOps, inputObjectMapper)
|
InteractiveShell.runRPCFromString(command, printWriter, invocationContext, cordaRpcOps, inputObjectMapper)
|
||||||
verify(printWriter).println(NETWORK_MAP_JSON_PAYLOAD)
|
verify(printWriter).println(NETWORK_MAP_JSON_PAYLOAD.replace("\n", System.lineSeparator()))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ToStringSerialize
|
@ToStringSerialize
|
||||||
data class UserValue(@JsonProperty("label") val label: String) {
|
data class UserValue(@JsonProperty("label") val label: String) {
|
||||||
override fun toString() = label
|
override fun toString() = label
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user