@BeforeMethod(groups = {"tck"}) public void setUp() { printEmptyContext = new DateTimePrintContext(EMPTY, Locale.ENGLISH, DateTimeFormatSymbols.STANDARD); ZonedDateTime zdt = LocalDateTime.of(2011, 6, 30, 12, 30, 40, 0).atZone(ZoneId.of("Europe/Paris")); printContext = new DateTimePrintContext(zdt, Locale.ENGLISH, DateTimeFormatSymbols.STANDARD); parseContext = new DateTimeParseContext(Locale.ENGLISH, DateTimeFormatSymbols.STANDARD); buf = new StringBuilder(); }
public void test_getValue_Calendrical_dateTime() { Calendrical cal = LocalDateTime.of(2007, 6, 20, 12, 30); assertEquals(rule().getValue(cal), rule().field(2007)); }