mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
CORDA-499: Rename CurrencyUtils to Currencies (#1476)
* Rename CurrencyUtils to Currencies Rename CurrencyUtils to Currencies to explain why it's not in the finance utils package. * Correct reference in CordaRPCJavaClientTest * Remove spurious newline
This commit is contained in:
parent
4eacaaf283
commit
fec7919edc
@ -29,7 +29,7 @@ import static java.util.Collections.singletonList;
|
||||
import static java.util.Objects.requireNonNull;
|
||||
import static kotlin.test.AssertionsKt.assertEquals;
|
||||
import static net.corda.client.rpc.CordaRPCClientConfiguration.getDefault;
|
||||
import static net.corda.finance.CurrencyUtils.DOLLARS;
|
||||
import static net.corda.finance.Currencies.DOLLARS;
|
||||
import static net.corda.finance.contracts.GetBalances.getCashBalance;
|
||||
import static net.corda.node.services.FlowPermissions.startFlowPermission;
|
||||
import static net.corda.testing.TestConstants.getALICE;
|
||||
|
@ -1,4 +1,4 @@
|
||||
@file:JvmName("CurrencyUtils")
|
||||
@file:JvmName("Currencies")
|
||||
|
||||
package net.corda.finance
|
||||
|
@ -6,8 +6,8 @@ import net.corda.core.utilities.OpaqueBytes;
|
||||
import net.corda.testing.DummyCommandData;
|
||||
import org.junit.Test;
|
||||
|
||||
import static net.corda.finance.CurrencyUtils.DOLLARS;
|
||||
import static net.corda.finance.CurrencyUtils.issuedBy;
|
||||
import static net.corda.finance.Currencies.DOLLARS;
|
||||
import static net.corda.finance.Currencies.issuedBy;
|
||||
import static net.corda.testing.CoreTestUtils.*;
|
||||
import static net.corda.testing.NodeTestUtils.*;
|
||||
|
||||
|
@ -4,7 +4,7 @@ import net.corda.core.contracts.Amount
|
||||
import org.junit.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class CurrencyUtilsTest {
|
||||
class CurrenciesTests {
|
||||
@Test
|
||||
fun `basic currency`() {
|
||||
val expected = 1000L
|
Loading…
Reference in New Issue
Block a user