Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-1808

[classlib][luni] tests.api.java.util.ResourceBundleTest has incorrect assertion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Classlib
    • None
    • Patch Available

    Description

      HUT tests.api.java.util.ResourceBundleTest.test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader test fails beacuse has incorrect assertion at line #125 as the pair "key=value" into hyts_resource.properties file looks:

      $cat hyts_resource.properties
      property=parent

      $cat -n tests/api/java/util/ResourceBundleTest
      ...

      120 String name = Support_Resources.RESOURCE_PACKAGE_NAME
      121 + ".hyts_resource";
      122 ResourceBundle bundle = ResourceBundle.getBundle(name, Locale
      123 .getDefault());
      124 bundle = ResourceBundle.getBundle(name, Locale.getDefault(), loader);
      125 assertEquals("Wrong cached value",
      126 "resource", bundle.getString("property"));

      ...

      Suggesion fix: plz, see patch

      Attachments

        1. patch.txt
          0.6 kB
          Maxim Makarov
        2. ResourceBundleTest.patch
          0.7 kB
          Mikhail Markov

        Activity

          People

            tellison Tim Ellison
            makarov Maxim Makarov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: