mirror of
https://github.com/corda/corda.git
synced 2025-06-17 14:48:16 +00:00
[CORDA-2208]: NodeHandles hashcode attemps an RPC invocation. (#4217)
This commit is contained in:
committed by
GitHub
parent
2f833f589c
commit
ac23fcdf24
@ -0,0 +1,21 @@
|
||||
package net.corda.node.services.rpc
|
||||
|
||||
import net.corda.core.utilities.getOrThrow
|
||||
import net.corda.testing.driver.DriverParameters
|
||||
import net.corda.testing.driver.driver
|
||||
import org.assertj.core.api.Assertions.assertThatCode
|
||||
import org.junit.Test
|
||||
|
||||
class NodeHandleTests {
|
||||
@Test
|
||||
fun object_defined_functions_are_static_for_node_rpc_ops() {
|
||||
driver(DriverParameters(startNodesInProcess = true)) {
|
||||
val rpcClient = startNode().getOrThrow().rpc
|
||||
|
||||
assertThatCode { rpcClient.hashCode() }.doesNotThrowAnyException()
|
||||
@Suppress("UnusedEquals")
|
||||
assertThatCode { rpcClient == rpcClient }.doesNotThrowAnyException()
|
||||
assertThatCode { rpcClient.toString() }.doesNotThrowAnyException()
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user