Skip to content

Commit

Permalink
340: java.util.ServiceConfigurationError when trying to convert EUR in
Browse files Browse the repository at this point in the history
CHF in moneta 1.4.2

Task-Url: #340
  • Loading branch information
keilw committed Aug 27, 2020
1 parent 1d9959d commit 89dcf66
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 235 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ You can access the RI by adding the following Maven dependencies:
<dependency>
<groupId>org.javamoney</groupId>
<artifactId>moneta</artifactId>
<version>1.3</version>
<version>1.4.2</version>
<type>pom</type>
</dependency>
```

The same for Gradle:
```groovy
compile group: 'org.javamoney', name: 'moneta', version: '1.3', ext: 'pom'
compile group: 'org.javamoney', name: 'moneta', version: '1.4.2', ext: 'pom'
```

SBT:
```scala
libraryDependencies += "org.javamoney" % "moneta" % "1.3" pomOnly()
libraryDependencies += "org.javamoney" % "moneta" % "1.4.2" pomOnly()
```

The release artifacts are accessible from the following repositories:
Expand All @@ -45,7 +45,7 @@ The release artifacts are accessible from the following repositories:

[Release notes](https://github.com/JavaMoney/jsr354-ri/releases)

The library supports JDK8 and later but also is available a limited backport to JDK7 [jsr354-ri-bp](https://github.com/JavaMoney/jsr354-ri-bp).
The implementation supports JDK8 and later.

Help and support
----------------
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2012, 2015, Credit Suisse (Anatole Tresch), Werner Keil and others by the @author tag.
# Copyright (c) 2012, 2020, Werner Keil and others by the @author tag.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2012, 2019, Werner Keil and others by the @author tag.
* Copyright (c) 2012, 2020, Werner Keil and others by the @author tag.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
Expand All @@ -22,8 +22,6 @@
import static org.testng.Assert.*;

import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.Currency;
import java.util.Locale;

import javax.money.CurrencyUnit;
Expand All @@ -40,7 +38,6 @@
import org.javamoney.moneta.RoundedMoney;
import org.javamoney.moneta.spi.MoneyUtils;
import org.testng.Assert;
import org.testng.annotations.Ignore;
import org.testng.annotations.Test;

public class MonetaryFormatsTest {
Expand Down Expand Up @@ -167,8 +164,9 @@ public void testRupeeFormatting() {

MonetaryAmountFormat format = MonetaryFormats.getAmountFormat(india);
Money money = Money.of(amount, "INR");
String expectedFormattedString = "INR 6,78,90,00,00,00,000.00";
assertEquals(format.format(money), expectedFormattedString);
final String expectedFormattedString = "INR 6,78,90,00,00,00,000.00";
String actualFormattedString = format.format(money);
assertEquals(actualFormattedString, expectedFormattedString);
assertEquals(money, Money.parse(expectedFormattedString, format));
}

Expand Down
1 change: 1 addition & 0 deletions src/etc/jsr354-ri test.launch
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:/moneta-parent}"/>
</launchConfiguration>

0 comments on commit 89dcf66

Please sign in to comment.