@Test void calculateUpperDateShouldReturnDateUpToTheNextHourUsingHourUnit() { assertThat(DateResolutionFormatter.computeUpperDate(date, SearchQuery.DateResolution.Hour)) .isEqualTo("2014-01-02T16:00:00Z"); }
public static ZonedDateTime computeUpperDate(ZonedDateTime date, SearchQuery.DateResolution resolution) { return computeLowerDate(date, resolution).plus(1, convertDateResolutionField(resolution)); }
DateResolutionFormatter { public static ZonedDateTime computeUpperDate(ZonedDateTime date, SearchQuery.DateResolution resolution) { return computeLowerDate(date, resolution).plus(1, convertDateResolutionField(resolution)); } }
DateResolutionFormatter { public static ZonedDateTime computeUpperDate(ZonedDateTime date, SearchQuery.DateResolution resolution) { return computeLowerDate(date, resolution).plus(1, convertDateResolutionField(resolution)); }  }
DateResolutionFormatter { public static ZonedDateTime computeUpperDate(ZonedDateTime date, SearchQuery.DateResolution resolution) { return computeLowerDate(date, resolution).plus(1, convertDateResolutionField(resolution)); }  static ZonedDateTime computeUpperDate(ZonedDateTime date, SearchQuery.DateResolution resolution); static ZonedDateTime computeLowerDate(ZonedDateTime date, SearchQuery.DateResolution resolution); static ZonedDateTime convertDateToZonedDateTime(Date date); }
DateResolutionFormatter { public static ZonedDateTime computeUpperDate(ZonedDateTime date, SearchQuery.DateResolution resolution) { return computeLowerDate(date, resolution).plus(1, convertDateResolutionField(resolution)); }  static ZonedDateTime computeUpperDate(ZonedDateTime date, SearchQuery.DateResolution resolution); static ZonedDateTime computeLowerDate(ZonedDateTime date, SearchQuery.DateResolution resolution); static ZonedDateTime convertDateToZonedDateTime(Date date);  }