cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [11/19] git commit: updated refs/heads/ui-restyle to 4b63867
Date Tue, 24 Sep 2013 18:19:11 GMT
This test appears to be locale sensitive, so fix the locale in the test


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5ada5e88
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5ada5e88
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5ada5e88

Branch: refs/heads/ui-restyle
Commit: 5ada5e88f3097c2964a8ccdb2fce023c7efe12c2
Parents: e61f1bb
Author: Hugo Trippaers <htrippaers@schubergphilis.com>
Authored: Tue Sep 24 18:29:44 2013 +0800
Committer: Hugo Trippaers <htrippaers@schubergphilis.com>
Committed: Tue Sep 24 18:30:00 2013 +0800

----------------------------------------------------------------------
 utils/test/com/cloud/utils/NumbersUtilTest.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5ada5e88/utils/test/com/cloud/utils/NumbersUtilTest.java
----------------------------------------------------------------------
diff --git a/utils/test/com/cloud/utils/NumbersUtilTest.java b/utils/test/com/cloud/utils/NumbersUtilTest.java
index 711cc22..cf829d9 100644
--- a/utils/test/com/cloud/utils/NumbersUtilTest.java
+++ b/utils/test/com/cloud/utils/NumbersUtilTest.java
@@ -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);


Mime
View raw message