mirror of
https://github.com/corda/corda.git
synced 2025-06-22 17:09:00 +00:00
OS->Ent merge
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
package net.corda.core.contracts;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static net.corda.finance.Currencies.POUNDS;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class AmountParsingTest {
|
||||
|
||||
@Test
|
||||
public void testGbpParse() {
|
||||
assertEquals(POUNDS(10), Amount.parseCurrency("10 GBP"));
|
||||
assertEquals(POUNDS(11), Amount.parseCurrency("£11"));
|
||||
}
|
||||
}
|
@ -172,4 +172,10 @@ class AmountTests {
|
||||
assertEquals(originalTotals[Pair(partyA, GBP)], newTotals3[Pair(partyA, GBP)])
|
||||
assertEquals(originalTotals[Pair(partyB, GBP)], newTotals3[Pair(partyB, GBP)])
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testGbpParse() {
|
||||
assertEquals(POUNDS(10), Amount.parseCurrency("10 GBP"))
|
||||
assertEquals(POUNDS(11), Amount.parseCurrency("£11"))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user