mirror of
https://github.com/corda/corda.git
synced 2025-06-16 06:08:13 +00:00
Corda-1505 catch connection failure exception and re-throw as RPCException (#3203)
* CORDA-1505: catch connection failure exception and rethrow as RPCException * CORDA-1443: remove incorrect import * CORDA-1443: fix some failing tests * CORDA-1505: fix broken CordaRPCClient test * fix tests * CORDA-1505: catch connection failure exception and rethrow as RPCException * CORDA-1443: remove incorrect import * CORDA-1443: fix some failing tests * CORDA-1505: fix broken CordaRPCClient test * fix tests * CORDA-1505: changed exception handling to RPCException * CORDA-1505: changed exception handling to RPCException
This commit is contained in:
@ -3,6 +3,7 @@ package net.corda.tools.shell
|
||||
import com.google.common.io.Files
|
||||
import com.jcraft.jsch.ChannelExec
|
||||
import com.jcraft.jsch.JSch
|
||||
import net.corda.client.rpc.RPCException
|
||||
import net.corda.core.internal.div
|
||||
import net.corda.core.messaging.CordaRPCOps
|
||||
import net.corda.core.utilities.getOrThrow
|
||||
@ -21,7 +22,6 @@ import net.corda.testing.internal.saveToKeyStore
|
||||
import net.corda.testing.internal.saveToTrustStore
|
||||
import net.corda.testing.internal.useSslRpcOverrides
|
||||
import net.corda.testing.node.User
|
||||
import org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException
|
||||
import org.apache.activemq.artemis.api.core.ActiveMQSecurityException
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.assertj.core.api.Assertions.assertThatThrownBy
|
||||
@ -120,7 +120,7 @@ class InteractiveShellIntegrationTest {
|
||||
|
||||
InteractiveShell.startShell(conf)
|
||||
|
||||
assertThatThrownBy { InteractiveShell.nodeInfo() }.isInstanceOf(ActiveMQNotConnectedException::class.java)
|
||||
assertThatThrownBy { InteractiveShell.nodeInfo() }.isInstanceOf(RPCException::class.java)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user