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

matthew_swift
24.21.2007 82f7055c3e823a58e0d747cc782f8cf9eed913aa
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
commit82f7055c3e823a58e0d747cc782f8cf9eed913aa
tree 1c8273eeb529aac8d62722cca378635fd9be66cc tree | zip | gz
parent c99339a05759b8b7a86da25a8d884337b3bf8e16 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
opendj-sdk/opends/resource/admin/property-types/duration.xsl 8 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/admin/DurationPropertyDefinition.java 147 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/admin/DurationUnit.java 210 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/admin/SizePropertyDefinition.java 6 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/admin/SizeUnit.java 49 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/ConfigurableEnvironment.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/DurationPropertyDefinitionTest.java 78 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/DurationUnitTest.java 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/SizeUnitTest.java 72 ●●●● diff | view | raw | blame | history