harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Makarov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1808) [classlib][luni] tests.api.java.util.ResourceBundleTest has incorrect assertion
Date Tue, 10 Oct 2006 11:27:19 GMT
[classlib][luni] tests.api.java.util.ResourceBundleTest has incorrect assertion
-------------------------------------------------------------------------------

                 Key: HARMONY-1808
                 URL: http://issues.apache.org/jira/browse/HARMONY-1808
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Maxim Makarov
         Attachments: patch.txt

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



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message