From b2a2b08d1306eb2558b7d8cfa327880c66c7d81c Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Tue, 17 Jul 2007 12:59:18 +0000
Subject: [PATCH] Fix issue 1958. Make sure duration and size values are always separated from their unit by a single space. For example, the value 5 seconds should be displayed as "5 s" and not "5s".

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/admin/DurationUnitTest.java |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/DurationUnitTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/DurationUnitTest.java
index 4a2319d..2072c52 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/DurationUnitTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/DurationUnitTest.java
@@ -82,15 +82,15 @@
     @DataProvider(name = "testToString")
     public Object[][] createToStringData() {
       return new Object[][]{
-              { 0L, "0ms" },
-              { 1L, "1ms" },
-              { 999L, "999ms" },
-              { 1000L, "1s" },
-              { 1001L, "1s1ms" },
-              { 59999L, "59s999ms" },
-              { 60000L, "1m" },
-              { 3599999L, "59m59s999ms" },
-              { 3600000L, "1h" }
+              { 0L, "0 ms" },
+              { 1L, "1 ms" },
+              { 999L, "999 ms" },
+              { 1000L, "1 s" },
+              { 1001L, "1 s 1 ms" },
+              { 59999L, "59 s 999 ms" },
+              { 60000L, "1 m" },
+              { 3599999L, "59 m 59 s 999 ms" },
+              { 3600000L, "1 h" }
       };
     }
 

--
Gitblit v1.10.0