Lines Matching refs:assertEquals

125                 assertEquals(msg + "language", idl, l.getLanguage());
126 assertEquals(msg + "script", ids, l.getScript());
127 assertEquals(msg + "country", idc, l.getCountry());
128 assertEquals(msg + "variant", idv, l.getVariant());
129 assertEquals(msg + "tag", tag, l.toLanguageTag());
130 assertEquals(msg + "id", id, l.toString());
181 assertEquals(msg + " language", idl, l.getLanguage());
182 assertEquals(msg + " script", ids, l.getScript());
183 assertEquals(msg + " country", idc, l.getCountry());
184 assertEquals(msg + " variant", idv, l.getVariant());
186 assertEquals(msg + "tag", tag, l.toLanguageTag());
187 assertEquals(msg + "id", id, l.toString());
234 assertEquals(id, "und", l.toLanguageTag());
253 assertEquals("tagResult", target, tagResult);
260 assertEquals("builderResult", target, builderResult);
276 assertEquals("ulocale", id, result.toLanguageTag());
312 assertEquals(id + " lang", test.length > 3 ? test[3] : test[0], locale.getLanguage());
313 assertEquals(id + " region", test.length > 4 ? test[4] : test[1], locale.getCountry());
314 assertEquals(id + " variant", test.length > 5 ? test[5] : test[2], locale.getVariant());
325 assertEquals("forLanguageTag", "Latn", locale.getScript());
329 assertEquals("builder", "Latn", locale.getScript());
333 assertEquals("script is empty string", "", locale.getScript());
339 assertEquals("some_ex-tension", null, locale.getExtension('a'));
343 assertEquals("builder", "some-ex-tension", locale.getExtension('a'));
346 assertEquals("empty b", null, locale.getExtension('b'));
353 assertEquals("x", "y-z-blork", locale.getExtension('x'));
359 assertEquals("result size", 2, result.size());
379 assertEquals("number of attributes", 2, attributes.size());
390 assertEquals("collation", "japanese", locale.getUnicodeLocaleType("co"));
391 assertEquals("numbers", "thai", locale.getUnicodeLocaleType("nu"));
394 assertEquals("key case", "japanese", locale.getUnicodeLocaleType("Co"));
397 assertEquals("locale keyword not present", null, locale.getUnicodeLocaleType("xx"));
401 assertEquals("locale extension not present", null, locale.getUnicodeLocaleType("co"));
405 assertEquals("typeless keyword", "", locale.getUnicodeLocaleType("kn"));
418 assertEquals("two keys", 2, result.size());
433 assertEquals("blork", "y-x-blork", locale.getExtension(Locale.PRIVATE_USE_EXTENSION));
436 assertEquals("no privateuse", null, locale.getExtension(Locale.PRIVATE_USE_EXTENSION));
483 assertEquals("case " + i, test[3], locale.toLanguageTag());
499 assertEquals("case " + test[0], test[1], locale.toLanguageTag());
550 assertEquals("grandfathered case " + i, test[1], locale.toLanguageTag());
588 assertEquals(msg, test[2], locale.toLanguageTag());
597 assertEquals("extension", "aa-00-bb-01", locale.getExtension('d'));
598 assertEquals("extension c", "1234", locale.getExtension('c'));
601 assertEquals("Unicode extension", "ca-gregory", locale.getExtension(Locale.UNICODE_LOCALE_EXTENSION));
605 assertEquals("Unicode keywords", "aa-000-bb-001-cc-003", locale.getExtension(Locale.UNICODE_LOCALE_EXTENSION));
606 assertEquals("Duplicated Unicode locake key followed by an extension", "1234", locale.getExtension('c'));
616 assertEquals("latn US", "Latin", latnLocale.getDisplayScript());
617 assertEquals("hans US", "Simplified Han", hansLocale.getDisplayScript());
620 assertEquals("latn DE", "Lateinisch", latnLocale.getDisplayScript());
621 assertEquals("hans DE", "Vereinfachte Chinesische Schrift", hansLocale.getDisplayScript());
630 assertEquals("latn US", "Latin", latnLocale.getDisplayScript(Locale.US));
631 assertEquals("hans US", "Simplified Han", hansLocale.getDisplayScript(Locale.US));
633 assertEquals("latn DE", "Lateinisch", latnLocale.getDisplayScript(Locale.GERMANY));
634 assertEquals("hans DE", "Vereinfachte Chinesische Schrift", hansLocale.getDisplayScript(Locale.GERMANY));
679 assertEquals("English display name for " + loc.toLanguageTag(),
681 assertEquals("Simplified Chinese display name for " + loc.toLanguageTag(),
701 assertEquals("long tag", target, result.toLanguageTag());
702 assertEquals("long tag", locale, result);
712 assertEquals("ja_JP_JP languagetag", "ja-JP-u-ca-japanese", locale.toLanguageTag());
713 assertEquals("ja_JP_JP variant", "", locale.getVariant());
716 assertEquals("th_TH_TH languagetag", "th-TH-u-nu-thai", locale.toLanguageTag());
717 assertEquals("th_TH_TH variant", "", locale.getVariant());
720 assertEquals("no_NO_NY languagetag", "nn-NO", locale.toLanguageTag());
721 assertEquals("no_NO_NY language", "nn", locale.getLanguage());
722 assertEquals("no_NO_NY variant", "", locale.getVariant());
740 assertEquals("language", target, result);
759 assertEquals("en", target, result);
767 assertEquals("empty", defaulted, result);
775 assertEquals("null", defaulted, result);
791 assertEquals("eng", "eng", result);
804 assertEquals("script", target, result);
812 assertEquals("empty", defaulted, result);
820 assertEquals("null", defaulted, result);
827 assertEquals("4alpha", "Wxyz", builder.setScript("wxyz").build().getScript());
840 assertEquals("us", target, result);
848 assertEquals("empty", defaulted, result);
856 assertEquals("null", defaulted, result);
863 assertEquals("2alpha", "ZZ", builder.setRegion("ZZ").build().getCountry());
864 assertEquals("3digit", "000", builder.setRegion("000").build().getCountry());
877 assertEquals("NewYork", target, result);
883 assertEquals("newer yorker", "und-NeWeR-YoRkEr", result);
890 assertEquals("zyx", "zzzzz_yyyyy_xxxxx", result);
898 assertEquals("empty", defaulted, result);
906 assertEquals("null", defaulted, result);
913 assertEquals("digit+3alpha", "1abc", builder.setVariant("1abc").build().getVariant());
929 assertEquals("extension", target, result);
937 assertEquals("empty", null, result);
945 assertEquals("null", null, result);
961 assertEquals("locale extension", "japanese", locale.getUnicodeLocaleType("co"));
967 assertEquals("locales with extension", locale, locale2);
973 assertEquals("remove co", null, locale3.getUnicodeLocaleType("co"));
974 assertEquals("override thai", "thai", locale3.getUnicodeLocaleType("nu"));
975 assertEquals("override attribute", 1, locale3.getUnicodeLocaleAttributes().size());
981 assertEquals("extend", "japanese", locale4.getUnicodeLocaleType("co"));
982 assertEquals("extend", "thai", locale4.getUnicodeLocaleType("nu"));
990 assertEquals("reorder", "und-u-123-456-xx-789-yy-456-zz-123", result);
998 assertEquals("multiple types", "thai-foobar", result);
1006 assertEquals("duplicate keys", "und-u-nu-thai-xx-1234", result);
1017 assertEquals("number of attributes", 2, uattrs.size());
1025 assertEquals("remove bogus", 2, uattrs.size());
1030 assertEquals("add duplicate", 2, uattrs.size());
1046 assertEquals("co", "japanese", locale.getUnicodeLocaleType("co"));
1047 assertEquals("nu", "thai", locale.getUnicodeLocaleType("nu"));
1048 assertEquals("keys", 2, locale.getUnicodeLocaleKeys().size());
1055 assertEquals("empty co", "und-u-nu-thai", result);
1062 assertEquals("empty nu", "und", result);
1070 assertEquals("reordered", "und-u-aa-345-zz-012", result);
1091 assertEquals("abc", target, result);
1106 assertEquals("clear", "und", result);
1160 assertEquals("roundtrip " + locale, locale, o);
1215 assertEquals("Deserialize Java 6 Locale " + locale, o, locale);
1254 assertEquals("Language tag roundtrip by forLanguageTag with input: " + in, expected, out);
1261 assertEquals("Language tag roundtrip by Builder.setLanguageTag with input: " + in, expected, out);
1277 assertEquals("Empty country field with non-empty script/extension with input: " + in, expected, out);
1301 assertEquals("Wrong calendar", expected, cal.getClass().getName());
1307 assertEquals("Wrong digit zero char", expected, zero);
1326 private void assertEquals(String msg, Object e, Object v) {