OS->Ent merge

This commit is contained in:
Viktor Kolomeyko
2018-08-06 14:43:51 +01:00
18 changed files with 193 additions and 115 deletions

View File

@ -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"));
}
}

View File

@ -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"))
}
}