@Test public void testConvertDateToOffsetDateTime() throws Exception { Assert.assertEquals("Date was not correctly converted", OffsetDateTime.of( testCalendar.get(Calendar.YEAR), testCalendar.get(Calendar.MONTH) + 1, testCalendar.get(Calendar.DAY_OF_MONTH), testCalendar.get(Calendar.HOUR_OF_DAY), testCalendar.get(Calendar.MINUTE), testCalendar.get(Calendar.SECOND), (int) (testCalendar.get(Calendar.MILLISECOND) * 1e6), ZoneOffset.of("+0000") ), FilterUtil.convertDateToOffsetDateTime(testCalendar.getTime())); }
public static OffsetDateTime convertDateToOffsetDateTime(Date date) { return OffsetDateTime.ofInstant(date.toInstant(), ZoneId.of("UTC")); }
FilterUtil { public static OffsetDateTime convertDateToOffsetDateTime(Date date) { return OffsetDateTime.ofInstant(date.toInstant(), ZoneId.of("UTC")); } }
FilterUtil { public static OffsetDateTime convertDateToOffsetDateTime(Date date) { return OffsetDateTime.ofInstant(date.toInstant(), ZoneId.of("UTC")); }  }
FilterUtil { public static OffsetDateTime convertDateToOffsetDateTime(Date date) { return OffsetDateTime.ofInstant(date.toInstant(), ZoneId.of("UTC")); }  static boolean extractTimeZoneAndTestDate(Date date, String filter); static OffsetDateTime convertDateToOffsetDateTime(Date date); static String[] extractTimeZone(String filter); static OffsetDateTime parseUIDate(String dateString, String timeZoneOffset); }
FilterUtil { public static OffsetDateTime convertDateToOffsetDateTime(Date date) { return OffsetDateTime.ofInstant(date.toInstant(), ZoneId.of("UTC")); }  static boolean extractTimeZoneAndTestDate(Date date, String filter); static OffsetDateTime convertDateToOffsetDateTime(Date date); static String[] extractTimeZone(String filter); static OffsetDateTime parseUIDate(String dateString, String timeZoneOffset);  }