mirror of
https://github.com/corda/corda.git
synced 2024-12-24 07:06:44 +00:00
parent
100f680042
commit
327f3383f9
@ -1,6 +1,5 @@
|
||||
package net.corda.client.rpc
|
||||
|
||||
import net.corda.core.CordaRuntimeException
|
||||
import net.corda.core.concurrent.CordaFuture
|
||||
import net.corda.core.internal.concurrent.doneFuture
|
||||
import net.corda.core.internal.concurrent.openFuture
|
||||
@ -12,7 +11,6 @@ import net.corda.testing.node.internal.RPCDriverDSL
|
||||
import net.corda.testing.node.internal.rpcDriver
|
||||
import net.corda.testing.node.internal.rpcTestUser
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.assertj.core.api.Assertions.assertThatThrownBy
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.junit.runners.Parameterized
|
||||
@ -79,10 +77,9 @@ class ClientRPCInfrastructureTests : AbstractRPCTest() {
|
||||
// Does nothing, doesn't throw.
|
||||
proxy.void()
|
||||
|
||||
assertThatThrownBy { proxy.barf() }
|
||||
.isInstanceOf(CordaRuntimeException::class.java)
|
||||
.hasMessage("java.lang.IllegalArgumentException: Barf!")
|
||||
|
||||
assertEquals("Barf!", assertFailsWith<IllegalArgumentException> {
|
||||
proxy.barf()
|
||||
}.message)
|
||||
|
||||
assertEquals("hi 5", proxy.someCalculation("hi", 5))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user