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(); } }