mirror of
https://github.com/corda/corda.git
synced 2025-01-01 10:46:46 +00:00
Use proper assertTrue().
This commit is contained in:
parent
0832ea405e
commit
5d81064b4a
@ -24,6 +24,7 @@ import org.junit.Before
|
|||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
import kotlin.test.assertTrue
|
||||||
|
|
||||||
class CordaRPCClientTest : NodeBasedTest() {
|
class CordaRPCClientTest : NodeBasedTest() {
|
||||||
private val rpcUser = User("user1", "test", permissions = setOf(
|
private val rpcUser = User("user1", "test", permissions = setOf(
|
||||||
@ -102,7 +103,7 @@ class CordaRPCClientTest : NodeBasedTest() {
|
|||||||
val proxy = client.proxy()
|
val proxy = client.proxy()
|
||||||
|
|
||||||
val startCash = proxy.getCashBalances()
|
val startCash = proxy.getCashBalances()
|
||||||
assert(startCash.isEmpty(), {"Should not start with any cash"})
|
assertTrue(startCash.isEmpty(), "Should not start with any cash")
|
||||||
|
|
||||||
val flowHandle = proxy.startFlow(::CashIssueFlow,
|
val flowHandle = proxy.startFlow(::CashIssueFlow,
|
||||||
123.DOLLARS, OpaqueBytes.of(0),
|
123.DOLLARS, OpaqueBytes.of(0),
|
||||||
|
Loading…
Reference in New Issue
Block a user