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

matthew_swift
20.34.2006 4e0cd5f7ff79bd052f80884d76d312e979801fe2
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
commit4e0cd5f7ff79bd052f80884d76d312e979801fe2
tree f128d39062b3688a14d3865870b50048beeb494b tree | zip | gz
parent 603380e856799d1d16290bc08dcf7c969faf1d40 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
opends/src/server/org/opends/server/extensions/FIFOEntryCache.java 4 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/extensions/SoftReferenceEntryCache.java 4 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java 8 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/StaticUtils.java 146 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/util/TestStaticUtils.java 1047 ●●●●● diff | view | raw | blame | history