LcL3ProductionType extends HadoopProductionType { static DateRange getDateRange_OLD(ProductionRequest productionRequest) throws ProductionException { Date minDate = productionRequest.getDate("minDate"); int periodLength = productionRequest.getInteger("periodLength", PERIOD_LENGTH_DEFAULT); Calendar calendar = DateUtils.createCalendar(); calendar.setTimeInMillis(minDate.getTime()); calendar.add(Calendar.DAY_OF_MONTH, periodLength - 1); return new DateRange(minDate, calendar.getTime()); } LcL3ProductionType(FileSystemService fileSystemService, HadoopProcessingService processingService,
                       StagingService stagingService); @Override Production createProduction(ProductionRequest productionRequest);  }
@Test public void testgetDateRange() throws Exception { ProductionRequest productionRequest = new ProductionRequest("LCL3", "ewa", "minDate", "2010-07-01", "periodLength", "15"); DateRange dateRange = LcL3ProductionType.getDateRange_OLD(productionRequest); assertNotNull(dateRange); assertEquals("2010-07-01", asString(dateRange.getStartDate())); assertEquals("2010-07-15", asString(dateRange.getStopDate())); }