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:
Ross Nicoll 2017-09-15 09:03:44 +01:00 committed by josecoll
parent 4eacaaf283
commit fec7919edc
4 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -1,4 +1,4 @@
@file:JvmName("CurrencyUtils")
@file:JvmName("Currencies")
package net.corda.finance

View File

@ -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.*;

View File

@ -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