mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
24.21.2007 c4b20d52fa50404b6b8d0a910a41b3fc47cfb90e
refs
author matthew_swift <matthew_swift@localhost>
Tuesday, April 24, 2007 10:21 +0200
committer matthew_swift <matthew_swift@localhost>
Tuesday, April 24, 2007 10:21 +0200
commitc4b20d52fa50404b6b8d0a910a41b3fc47cfb90e
tree 15cbd592903b5fb7c14176fbf0df4583664ba50e tree | zip | gz
parent e0b7ba8584a1d4717825e6b8fd977a4849040d5a view | diff
This change (no associated issue no.) addresses some counter-intuitive behavior discovered when specifying some duration based properties:

* duration and size units had to be specified in default behaviors

* upper/lower limit had to be specified without a unit and with
values in the property's base unit (bytes for size properties)

This change enables us to specify duration and size property constraints and defaults with or without units (when no unit is specified we default to the property's base unit).

The Duration{Unit|PropertyDefinition} APIs have also been re-aligned with the Size{Unit|PropertyDefinition} APIs where possible and the unit tests updated (incl. replacing many bad uses of the assert keyword with the assertEquals TestNG method).
9 files modified
575 ■■■■ changed files
opends/resource/admin/property-types/duration.xsl 8 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/DurationPropertyDefinition.java 147 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/DurationUnit.java 210 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/SizePropertyDefinition.java 6 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/SizeUnit.java 49 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/ConfigurableEnvironment.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/admin/DurationPropertyDefinitionTest.java 78 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/admin/DurationUnitTest.java 3 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/admin/SizeUnitTest.java 72 ●●●● diff | view | raw | blame | history