@Test public void testLast30DayRange() { DateRangeAndType last30Days = DateRangeAndType.fromString("LAST_30_DAYS"); testDateRange(last30Days, "20130902", "20131001"); }
public static DateRangeAndType fromString(final String dateRange) { Preconditions.checkNotNull(dateRange, "DateRange cannot be null."); Preconditions.checkArgument(!dateRange.isEmpty(), "DateRange cannot be empty."); return dateRange.contains(",") ? parseCustomFormat(dateRange) : parseEnumFormat(dateRange); }
DateRangeAndType { public static DateRangeAndType fromString(final String dateRange) { Preconditions.checkNotNull(dateRange, "DateRange cannot be null."); Preconditions.checkArgument(!dateRange.isEmpty(), "DateRange cannot be empty."); return dateRange.contains(",") ? parseCustomFormat(dateRange) : parseEnumFormat(dateRange); } }
DateRangeAndType { public static DateRangeAndType fromString(final String dateRange) { Preconditions.checkNotNull(dateRange, "DateRange cannot be null."); Preconditions.checkArgument(!dateRange.isEmpty(), "DateRange cannot be empty."); return dateRange.contains(",") ? parseCustomFormat(dateRange) : parseEnumFormat(dateRange); } private  DateRangeAndType(
      LocalDate startDate, LocalDate endDate, ReportDefinitionDateRangeType type); }
DateRangeAndType { public static DateRangeAndType fromString(final String dateRange) { Preconditions.checkNotNull(dateRange, "DateRange cannot be null."); Preconditions.checkArgument(!dateRange.isEmpty(), "DateRange cannot be empty."); return dateRange.contains(",") ? parseCustomFormat(dateRange) : parseEnumFormat(dateRange); } private  DateRangeAndType(
      LocalDate startDate, LocalDate endDate, ReportDefinitionDateRangeType type); String getStartDateStr(); String getEndDateStr(); String getTypeStr(); LocalDate getStartDate(); LocalDate getEndDate(); ReportDefinitionDateRangeType getType(); DateRange getDateRange(); static DateRangeAndType fromValues(LocalDate startDate, LocalDate endDate,
      ReportDefinitionDateRangeType type); static DateRangeAndType fromString(final String dateRange); }
DateRangeAndType { public static DateRangeAndType fromString(final String dateRange) { Preconditions.checkNotNull(dateRange, "DateRange cannot be null."); Preconditions.checkArgument(!dateRange.isEmpty(), "DateRange cannot be empty."); return dateRange.contains(",") ? parseCustomFormat(dateRange) : parseEnumFormat(dateRange); } private  DateRangeAndType(
      LocalDate startDate, LocalDate endDate, ReportDefinitionDateRangeType type); String getStartDateStr(); String getEndDateStr(); String getTypeStr(); LocalDate getStartDate(); LocalDate getEndDate(); ReportDefinitionDateRangeType getType(); DateRange getDateRange(); static DateRangeAndType fromValues(LocalDate startDate, LocalDate endDate,
      ReportDefinitionDateRangeType type); static DateRangeAndType fromString(final String dateRange);  }