From c4b20d52fa50404b6b8d0a910a41b3fc47cfb90e Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Tue, 24 Apr 2007 08:21:24 +0000
Subject: [PATCH] This change (no associated issue no.) addresses some counter-intuitive behavior discovered when specifying some duration based properties:
---
opends/tests/unit-tests-testng/src/server/org/opends/server/admin/DurationUnitTest.java | 3 ++-
1 files changed, 2 insertions(+), 1 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 367cfab..0f8dece 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,12 +82,13 @@
@DataProvider(name = "testGetBestFitUnit")
public Object[][] createGetBestFitData() {
return new Object[][]{
+ { SECONDS, 0, SECONDS },
{ MINUTES, 0, MINUTES },
+ { HOURS, 0, HOURS },
{ MINUTES, .5D, SECONDS },
{ MINUTES, 119D, MINUTES },
{ MINUTES, 120D, HOURS },
{ MINUTES, 121D, MINUTES },
- { MINUTES, Double.MAX_VALUE, MINUTES },
{ MINUTES, Double.MIN_VALUE, MINUTES }
};
}
--
Gitblit v1.10.0