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

Jean-Noel Rouvignac
08.24.2014 951d57e5aa8a827d4cbd18526c7e7eb377e20899
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Saturday, March 8, 2014 00:24 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Saturday, March 8, 2014 00:24 +0100
commit951d57e5aa8a827d4cbd18526c7e7eb377e20899
tree fb2ba996be8909210ed4b977fc019c51919c69de tree | zip | gz
parent 2ca8bc4323a0895cd94bc71ac5345fcd76de2443 view | diff
OPENDJ-1308 Migrate schema support

Added unit tests, simplified code and fixed one bug.

AbstractSubstringMatchingRuleImpl.java:
In DefaultSubstringAssertion.matches(), greatly simplified the code.
In rangeMatch(), forced byte comparison to fix a bug where overflowing was not happening due to int comparison being used.
Extracted BACKSLASH constant.

AbstractSubstringMatchingRuleImplTest.java: ADDED

SubstringMatchingRuleTest.java:
Improved the test code.

ApproximateMatchingRuleTest.java:
Fixed a comment.
3 files modified
1 files added
355 ■■■■ changed files
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/AbstractSubstringMatchingRuleImpl.java 46 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/AbstractSubstringMatchingRuleImplTest.java 262 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/ApproximateMatchingRuleTest.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/SubstringMatchingRuleTest.java 45 ●●●●● diff | view | raw | blame | history