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

matthew_swift
20.34.2006 d7b6a1861bf8d82fc9dd3f1c0de929471fc50f27
refs
author matthew_swift <matthew_swift@localhost>
Wednesday, September 20, 2006 18:34 +0200
committer matthew_swift <matthew_swift@localhost>
Wednesday, September 20, 2006 18:34 +0200
commitd7b6a1861bf8d82fc9dd3f1c0de929471fc50f27
tree 2e6276b3ccf5399739701ccd99957f68d2f02712 tree | zip | gz
parent 4bfbaa60084f7318dedad477364a6b96a24be413 view | diff
Implement test suite for org.opends.server.util.StaticUtils and make the following changes to the class:

* fix issue #685 (StaticUtils.charsToBytes incorrectly encodes non-ascii characters)

* rename charsToBytes to getBytes for consistency with getBytes(String)

* fix potential NPE in bytesToHex

* modified listsAreEqual so that it handles all types of List and falls back to default List.equals() implementation if the provided lists are not random access

* removed setsDiffer and replaced references to it with calls to Set.equals()


1 files added
4 files modified
1209 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/extensions/FIFOEntryCache.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/extensions/SoftReferenceEntryCache.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java 8 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/util/StaticUtils.java 146 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/util/TestStaticUtils.java 1047 ●●●●● diff | view | raw | blame | history