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

neil_a_wilson
18.13.2007 a3ae40758fe792e09db1160b15c9e59c58e32dd3
Update a message test case to replace a method call only available in Java 6
with one that will work properly in Java 5.
1 files modified
6 ■■■■■ changed files
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/messages/MessageTest.java 6 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/messages/MessageTest.java
@@ -32,6 +32,7 @@
import org.opends.server.TestCaseUtils;
import static org.testng.Assert.*;
import java.util.Enumeration;
import java.util.Locale;
import java.util.Properties;
import java.util.ResourceBundle;
@@ -152,8 +153,9 @@
  private void createDummyLocalizedCoreMessagesFile() throws IOException {
    Properties corePseudoI18nMsgs = new Properties();
    ResourceBundle coreDefaultMsgs = ResourceBundle.getBundle("messages/core");
    for (Object key : coreDefaultMsgs.keySet()) {
      corePseudoI18nMsgs.put(key, TEST_MSG);
    Enumeration<String> keyEnum = coreDefaultMsgs.getKeys();
    while (keyEnum.hasMoreElements()) {
      corePseudoI18nMsgs.put(keyEnum.nextElement(), TEST_MSG);
    }
    File buildRoot = new File(System.getProperty(TestCaseUtils.PROPERTY_BUILD_ROOT));
    File corePseudoI18nMsgsFile = new File(buildRoot,