From e125f962db7d299f68ae5550f1fe4a94f32019e5 Mon Sep 17 00:00:00 2001 From: okx-code Date: Tue, 22 Jun 2021 17:38:20 +0100 Subject: [PATCH] Use locale for money format, closes #62 --- src/test/java/sh/okx/rankup/legacy/LegacyPlaceholderTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/sh/okx/rankup/legacy/LegacyPlaceholderTest.java b/src/test/java/sh/okx/rankup/legacy/LegacyPlaceholderTest.java index b230991..fae779a 100644 --- a/src/test/java/sh/okx/rankup/legacy/LegacyPlaceholderTest.java +++ b/src/test/java/sh/okx/rankup/legacy/LegacyPlaceholderTest.java @@ -1,6 +1,7 @@ package sh.okx.rankup.legacy; import be.seeseemelk.mockbukkit.entity.PlayerMock; +import java.text.DecimalFormat; import org.junit.Test; import sh.okx.rankup.RankupTest; @@ -19,7 +20,8 @@ public class LegacyPlaceholderTest extends RankupTest { groupProvider.addGroup(player.getUniqueId(), "A"); plugin.getHelper().rankup(player); - player.assertSaid("testPlayer A B A-display last rank 1,000 900 4 1 3 25 75"); + DecimalFormat moneyFormat = new DecimalFormat("#,##0.##"); + player.assertSaid("testPlayer A B A-display last rank " + moneyFormat.format(1_000) + " 900 4 1 3 25 75"); player.assertNoMoreSaid(); } }