@Test public void getDateRange() { XSettings xsettings = new XSettings(); XDateRange xrange = new XDateRange(new LocalDate(2012, 10, 1), new LocalDate(2013, 10, 2), new Period(1, PeriodUnit.DAY)); xsettings.setRange(xrange); XDateRange dateRange = utils.getDateRange(xsettings); assertNotNull(dateRange); assertTrue(dateRange == xrange); }
public XDateRange getDateRange(XSettings xsettings) { if (xsettings.getRange() instanceof XDateRange) { return (XDateRange)xsettings.getRange(); } return null; }
XDateRangeUtils { public XDateRange getDateRange(XSettings xsettings) { if (xsettings.getRange() instanceof XDateRange) { return (XDateRange)xsettings.getRange(); } return null; } }
XDateRangeUtils { public XDateRange getDateRange(XSettings xsettings) { if (xsettings.getRange() instanceof XDateRange) { return (XDateRange)xsettings.getRange(); } return null; }  }
XDateRangeUtils { public XDateRange getDateRange(XSettings xsettings) { if (xsettings.getRange() instanceof XDateRange) { return (XDateRange)xsettings.getRange(); } return null; }  XDateRange getDateRange(XSettings xsettings); LocalDate generateEndDate(LocalDate startDate, Period period); }
XDateRangeUtils { public XDateRange getDateRange(XSettings xsettings) { if (xsettings.getRange() instanceof XDateRange) { return (XDateRange)xsettings.getRange(); } return null; }  XDateRange getDateRange(XSettings xsettings); LocalDate generateEndDate(LocalDate startDate, Period period);  }