aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket-be
diff options
context:
space:
mode:
authorMickael JEZEQUEL <mickael.jezequel@orange.com>2018-02-15 14:33:06 +0100
committerMickael JEZEQUEL <mickael.jezequel@orange.com>2018-02-15 14:37:32 +0100
commit33e124af64cb4eef05446c32568af485dcd34a3a (patch)
tree4c6abf85d8cada7f9a64844e60162abd72a2b81d /vnfmarket-be
parenta8b527ef3896aad5966c5e12485055929e4f6420 (diff)
fix LOCALE issue on format
Change-Id: I65010d8808ba6f63a412d328334d051c30100b56 Issue-ID: VNFSDK-205 Signed-off-by: Mickael JEZEQUEL <mickael.jezequel@orange.com>
Diffstat (limited to 'vnfmarket-be')
-rw-r--r--vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java b/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java
index d9081166..6b769a38 100644
--- a/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java
+++ b/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/resource/PackageResourceTest.java
@@ -27,6 +27,7 @@ import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.InputStream;
+import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.zip.ZipEntry;
@@ -931,7 +932,8 @@ public class PackageResourceTest {
public void testformatFileSize()
{
String res = ToolUtil.formatFileSize(10000.0,10);
- assertEquals(res,"1000.00M");
+ String expected=new DecimalFormat("#0.00").format(1000)+"M";//may be "1000.00" or "1000,00" depending on Locale
+ assertEquals(res,expected);
}
@Test