mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
This test appears to be locale sensitive, so fix the locale in the test
This commit is contained in:
parent
e61f1bb158
commit
5ada5e88f3
@ -18,12 +18,15 @@ package com.cloud.utils;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class NumbersUtilTest {
|
||||
|
||||
@Test
|
||||
public void formattingCheck() {
|
||||
Locale.setDefault(Locale.US); // Fixed locale for the test
|
||||
long size = 1024*1024*1024;
|
||||
String formatted = NumbersUtil.toReadableSize(size);
|
||||
assertEquals("1.00 GB", formatted);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user