MergeReducer extends Reducer<Text, NullWritable, Text, Text> { LocalDate localDate(String dateStr) { String[] split = dateStr.split("-"); return fromYearMonthDay(Integer.valueOf(split[0]), Integer.valueOf(split[1]), Integer.valueOf(split[2])); }  @Override void reduce(Text key, Iterable<NullWritable> values, Context context); static final String INSERT_INTO_CAPSTONE_FLIGHTCONNECTIONS_X_Y_Z_X_DEP_DATE_Y_DEP_DATE_XYFLIGHTNR_YZFLIGHTNR_VALUES; static Logger log; }
@Test public void testDate() { MergeReducer reducer = new MergeReducer(); LocalDate localDate = reducer.localDate(LocalDate.fromDaysSinceEpoch(1).toString()); assertNotNull(localDate); }