FormattingUtilsTest locale fix

This test was failing sometimes (not consistently) on a system with non-en locale. GlobalSettings.setLocale is used in other tests like this
This commit is contained in:
premek 2022-01-13 21:27:51 +01:00 committed by woodser
parent 7b6b92d894
commit 422267de79

View File

@ -1,5 +1,6 @@
package bisq.core.util;
import bisq.core.locale.GlobalSettings;
import bisq.core.locale.Res;
import bisq.core.monetary.Altcoin;
import bisq.core.monetary.Price;
@ -31,6 +32,7 @@ public class FormattingUtilsTest {
@Before
public void setUp() {
Locale.setDefault(new Locale("en", "US"));
GlobalSettings.setLocale(new Locale("en", "US"));
Res.setBaseCurrencyCode("XMR");
Res.setBaseCurrencyName("Monero");
}