@@ -0,0 +1,1710 @@
+package org.gnucash.android.test.unit.util;%0A%0Aimport org.gnucash.android.util.AmountParser;%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.math.BigDecimal;%0Aimport java.text.ParseException;%0Aimport java.util.Locale;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Apublic class AmountParserTest %7B%0A    private Locale mPreviousLocale;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        mPreviousLocale = Locale.getDefault();%0A        Locale.setDefault(Locale.US);%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A        Locale.setDefault(mPreviousLocale);%0A    %7D%0A%0A    @Test%0A    public void testParseIntegerAmount() throws ParseException %7B%0A        assertThat(AmountParser.parse(%22123%22)).isEqualTo(new BigDecimal(123));%0A    %7D%0A%0A    @Test%0A    public void parseDecimalAmount() throws ParseException %7B%0A        assertThat(AmountParser.parse(%22123.45%22)).isEqualTo(new BigDecimal(%22123.45%22));%0A    %7D%0A%0A    @Test%0A    public void parseDecimalAmountWithDifferentSeparator() throws ParseException %7B%0A        Locale.setDefault(Locale.GERMANY);%0A        assertThat(AmountParser.parse(%22123,45%22)).isEqualTo(new BigDecimal(%22123.45%22));%0A    %7D%0A%0A    @Test(expected = ParseException.class)%0A    public void withGarbageAtTheBeginning_shouldFailWithException() throws ParseException %7B%0A        AmountParser.parse(%22asdf123.45%22);%0A    %7D%0A%0A    @Test(expected = ParseException.class)%0A    public void withGarbageAtTheEnd_shouldFailWithException() throws ParseException %7B%0A        AmountParser.parse(%22123.45asdf%22);%0A    %7D%0A%0A    @Test(expected = ParseException.class)%0A    public void emptyString_shouldFailWithException() throws ParseException %7B%0A        AmountParser.parse(%22%22);%0A    %7D%0A%7D

Add test case for AmountParser.