localeData.timeFormat12 = ICU.getBestDateTimePattern("hm", locale.toString()); localeData.timeFormat24 = ICU.getBestDateTimePattern("Hm", locale.toString());
@Test @Config(minSdk = LOLLIPOP) public void getBestDateTimePattern_returns_jmm_US() { assertThat(ICU.getBestDateTimePattern("jmm", Locale.US)).isEqualTo("h:mm a"); }
@Test @Config(minSdk = LOLLIPOP) public void getBestDateTimePattern_returns_jmm_ptBR() { assertThat(ICU.getBestDateTimePattern("jmm", new Locale("pt", "BR"))).isEqualTo("H:mm"); }
@Test @Config(minSdk = LOLLIPOP) public void getBestDateTimePattern_returnsReasonableValue() { assertThat(ICU.getBestDateTimePattern("hm", null)).isEqualTo("hm"); }
@Test @Config(minSdk = LOLLIPOP) public void getBestDateTimePattern_returns_jmm_UK() { assertThat(ICU.getBestDateTimePattern("jmm", Locale.UK)).isEqualTo("H:mm"); }
localeData.timeFormat12 = ICU.getBestDateTimePattern("hm", locale.toString()); localeData.timeFormat24 = ICU.getBestDateTimePattern("Hm", locale.toString());
localeData.timeFormat12 = ICU.getBestDateTimePattern("hm", locale.toString()); localeData.timeFormat24 = ICU.getBestDateTimePattern("Hm", locale.toString());
localeData.timeFormat12 = ICU.getBestDateTimePattern("hm", locale.toString()); localeData.timeFormat24 = ICU.getBestDateTimePattern("Hm", locale.toString());
localeData.timeFormat12 = ICU.getBestDateTimePattern("hm", locale.toString()); localeData.timeFormat24 = ICU.getBestDateTimePattern("Hm", locale.toString());
localeData.timeFormat12 = ICU.getBestDateTimePattern("hm", locale.toString()); localeData.timeFormat24 = ICU.getBestDateTimePattern("Hm", locale.toString());
localeData.timeFormat12 = ICU.getBestDateTimePattern("hm", locale.toString()); localeData.timeFormat24 = ICU.getBestDateTimePattern("Hm", locale.toString());