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

Matthew Swift
05.33.2011 6b1e3bf06de1327d05b8cbefcd930e5974f556d3
opends/tests/unit-tests-testng/src/server/org/opends/server/util/TestStaticUtils.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 *      Portions Copyright 2011 ForgeRock AS
 */
package org.opends.server.util;
@@ -138,6 +139,21 @@
  }
  /**
   * Tests the {@link StaticUtils#decodeUTF8(byte[])} method.
   *
   * @param inputString
   *          The input string.
   * @throws Exception
   *           If the test failed unexpectedly.
   */
  @Test(dataProvider = "getBytesTestData")
  public void testDecodeUTF8(String inputString) throws Exception
  {
    final byte[] bytes = inputString.getBytes("UTF-8");
    Assert.assertEquals(StaticUtils.decodeUTF8(bytes), inputString);
  }
  /**
   * Tests the {@link StaticUtils#getBytes(String)} method.
   *
   * @param inputString
@@ -1174,7 +1190,7 @@
   *           If the test failed unexpectedly.
   */
  @Test(dataProvider = "listsAreEqualTestData")
  public void testListsAreEqual(List list1, List list2, boolean result)
  public void testListsAreEqual(List<?> list1, List<?> list2, boolean result)
      throws Exception {
    Assert.assertEquals(StaticUtils.listsAreEqual(list1, list2), result);
  }