test/java/time/test/java/time/format/TestDateTimeTextProvider.java

Print this page

        

*** 178,186 **** } @Test(dataProvider = "Text") public void test_getText(TemporalField field, Number value, TextStyle style, Locale locale, String expected) { DateTimeFormatter fmt = getFormatter(field, style).withLocale(locale); ! assertEquals(fmt.print(ZonedDateTime.now().with(field, value.longValue())), expected); } } --- 178,186 ---- } @Test(dataProvider = "Text") public void test_getText(TemporalField field, Number value, TextStyle style, Locale locale, String expected) { DateTimeFormatter fmt = getFormatter(field, style).withLocale(locale); ! assertEquals(fmt.format(ZonedDateTime.now().with(field, value.longValue())), expected); } }