@Test(expected = NullPointerException.class) public void convertEnd_NULL_XRANGE() { xDateRangeConverter.convertEnd(null); }
@Override public String convertEnd(XRange xRange) { Preconditions.checkNotNull(xRange); Preconditions.checkArgument(isApplicable(xRange.getClass())); XDateRange xDateRange = (XDateRange) xRange; LocalDate endDate = xDateRange.getEndDate(); return SearchDateTimeUtils.convertDateToISOStringAtEndOfDay(endDate); }
XDateRangeConverter implements XRangeConverter { @Override public String convertEnd(XRange xRange) { Preconditions.checkNotNull(xRange); Preconditions.checkArgument(isApplicable(xRange.getClass())); XDateRange xDateRange = (XDateRange) xRange; LocalDate endDate = xDateRange.getEndDate(); return SearchDateTimeUtils.convertDateToISOStringAtEndOfDay(endDate); } }
XDateRangeConverter implements XRangeConverter { @Override public String convertEnd(XRange xRange) { Preconditions.checkNotNull(xRange); Preconditions.checkArgument(isApplicable(xRange.getClass())); XDateRange xDateRange = (XDateRange) xRange; LocalDate endDate = xDateRange.getEndDate(); return SearchDateTimeUtils.convertDateToISOStringAtEndOfDay(endDate); }  }
XDateRangeConverter implements XRangeConverter { @Override public String convertEnd(XRange xRange) { Preconditions.checkNotNull(xRange); Preconditions.checkArgument(isApplicable(xRange.getClass())); XDateRange xDateRange = (XDateRange) xRange; LocalDate endDate = xDateRange.getEndDate(); return SearchDateTimeUtils.convertDateToISOStringAtEndOfDay(endDate); }  @Override boolean isApplicable(Class<? extends XRange> clazz); @Override String convertStart(XRange xRange); @Override String convertEnd(XRange xRange); @Override String convertGap(XRange xRange); }
XDateRangeConverter implements XRangeConverter { @Override public String convertEnd(XRange xRange) { Preconditions.checkNotNull(xRange); Preconditions.checkArgument(isApplicable(xRange.getClass())); XDateRange xDateRange = (XDateRange) xRange; LocalDate endDate = xDateRange.getEndDate(); return SearchDateTimeUtils.convertDateToISOStringAtEndOfDay(endDate); }  @Override boolean isApplicable(Class<? extends XRange> clazz); @Override String convertStart(XRange xRange); @Override String convertEnd(XRange xRange); @Override String convertGap(XRange xRange);  }