@Test public void testValidDurationString() { for (CellProcessor p : processors) { assertEquals(DURATION_STRING, p.execute(DURATION, ANONYMOUS_CSVCONTEXT)); } }
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof Duration)) { throw new SuperCsvCellProcessorException(Duration.class, value, context, this); } final Duration duration = (Duration) value; final String result = duration.toString(); return next.execute(result, context); }
FmtDuration extends CellProcessorAdaptor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof Duration)) { throw new SuperCsvCellProcessorException(Duration.class, value, context, this); } final Duration duration = (Duration) value; final String result = duration.toString(); return next.execute(result, context); } }
FmtDuration extends CellProcessorAdaptor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof Duration)) { throw new SuperCsvCellProcessorException(Duration.class, value, context, this); } final Duration duration = (Duration) value; final String result = duration.toString(); return next.execute(result, context); } FmtDuration();  FmtDuration(final CellProcessor next); }
FmtDuration extends CellProcessorAdaptor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof Duration)) { throw new SuperCsvCellProcessorException(Duration.class, value, context, this); } final Duration duration = (Duration) value; final String result = duration.toString(); return next.execute(result, context); } FmtDuration();  FmtDuration(final CellProcessor next); Object execute(final Object value, final CsvContext context); }
FmtDuration extends CellProcessorAdaptor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof Duration)) { throw new SuperCsvCellProcessorException(Duration.class, value, context, this); } final Duration duration = (Duration) value; final String result = duration.toString(); return next.execute(result, context); } FmtDuration();  FmtDuration(final CellProcessor next); Object execute(final Object value, final CsvContext context);  }