Skip to content

Commit 720f916

Browse files
committed
Updated JDK and Locale handling in Unit Tests
1 parent b1be848 commit 720f916

4 files changed

Lines changed: 39 additions & 6 deletions

File tree

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
# Be sure to update the Docker image tag below to openjdk version of your application.
1313
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/openjdk
1414
docker:
15-
- image: cimg/openjdk:17.0.6
15+
- image: cimg/openjdk:21.0.6
1616
# Add steps to the job
1717
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
1818
steps:
@@ -33,7 +33,7 @@ jobs:
3333
# Be sure to update the Docker image tag below to openjdk version of your application.
3434
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/openjdk
3535
docker:
36-
- image: cimg/openjdk:17.0.6
36+
- image: cimg/openjdk:21.0.6
3737
# Add steps to the job
3838
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
3939
steps:
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="moneta-parent [clean install]" type="MavenRunConfiguration" factoryName="Maven">
3+
<MavenSettings>
4+
<option name="myGeneralSettings" />
5+
<option name="myRunnerSettings" />
6+
<option name="myRunnerParameters">
7+
<MavenRunnerParameters>
8+
<option name="cmdOptions" />
9+
<option name="profiles">
10+
<set />
11+
</option>
12+
<option name="goals">
13+
<list>
14+
<option value="clean" />
15+
<option value="install" />
16+
</list>
17+
</option>
18+
<option name="multimoduleDir" />
19+
<option name="pomFileName" value="pom.xml" />
20+
<option name="profilesMap">
21+
<map />
22+
</option>
23+
<option name="projectsCmdOptionValues">
24+
<list />
25+
</option>
26+
<option name="resolveToWorkspace" value="false" />
27+
<option name="workingDirPath" value="$PROJECT_DIR$" />
28+
</MavenRunnerParameters>
29+
</option>
30+
</MavenSettings>
31+
<method v="2" />
32+
</configuration>
33+
</component>

moneta-convert/moneta-convert-base/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
<!-- compile everything to ensure module-info contains right entries -->
4545
<!-- required when JAVA_HOME is JDK 8 or below -->
4646
<jdkToolchain>
47-
<version>9</version>
47+
<version>11</version>
4848
</jdkToolchain>
49-
<release>9</release>
49+
<release>11</release>
5050
</configuration>
5151
</execution>
5252
<execution>

moneta-core/src/test/java/org/javamoney/moneta/spi/format/DefaultMonetaryAmountFormatTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ public void testParse_pattern_with_currency_sign_and_with_currency_in_context_bu
155155
"using different format queries.")
156156
public void testParseDifferentStyles() {
157157
final String[] skipLangArray = {"as", "ar", "bn", "ckb", "dz", "fa", "ig", "ks", "lrc",
158-
"mni", "mr", "my", "mzn", "ne", "pa", "ps", "sa", "sat", "sd", "th", "ur", "uz"};
158+
"mni", "mr", "my", "mzn", "ne", "pa", "ps", "sa", "sat", "sd", "th", "ur", "uz", "raj", "bgc", "bho"};
159159
final Set<String> SKIPPED_LANGUAGES = new HashSet<>(Arrays.asList(skipLangArray));
160-
final Locale[] locArray = new Locale[]{new Locale("dz", "BT")
160+
final Locale[] locArray = new Locale[]{Locale.of("dz", "BT")
161161
};
162162
final Set<Locale> SKIPPED_LOCALES = new HashSet<>(Arrays.asList(locArray));
163163

0 commit comments

Comments
 (0)