ICU-4767 fixes for noDataCheck

X-SVN-Rev: 18657
This commit is contained in:
Ram Viswanadha 2005-10-11 18:45:32 +00:00
parent 64b0786af5
commit 1437101edb
2 changed files with 8 additions and 2 deletions

View file

@ -1023,6 +1023,10 @@ public final class ICUResourceBundleTest extends TestFmwk {
if(i!=4){
errln("Did not get the expected number of keys");
}
UResourceBundle bundle4 = UResourceBundle.getBundleInstance(baseName,"fr_Latn_FR");
if(bundle==null){
errln("Could not load bundle fr_Latn_FR");
}
}
}

View file

@ -41,11 +41,14 @@ public class LocaleAliasTest extends com.ibm.icu.dev.test.TestFmwk {
};
private static final int _LOCALE_NUMBER = _LOCALES.length;
private static final ULocale[] available = ULocale.getAvailableLocales();
private static ULocale[] available = null;
private HashMap availableMap = new HashMap();
private static final ULocale _DEFAULT_LOCALE = ULocale.US;
public LocaleAliasTest(){
}
protected void init(){
available = ULocale.getAvailableLocales();
for(int i=0; i<available.length;i++){
availableMap.put(available[i].toString(),"");
}
@ -53,7 +56,6 @@ public class LocaleAliasTest extends com.ibm.icu.dev.test.TestFmwk {
public static void main(String[] args) {
new LocaleAliasTest().run(args);
}
public void TestCalendar() {
ULocale defLoc = ULocale.getDefault();
ULocale.setDefault(_DEFAULT_LOCALE);