@Test public void testValidDateTimeZone() { for (CellProcessor p : processors) { assertEquals(DATE_TIME_ZONE, p.execute(TIME_ZONE_STRING, ANONYMOUS_CSVCONTEXT)); } }
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof String)) { throw new SuperCsvCellProcessorException(String.class, value, context, this); } final DateTimeZone result; try { result = DateTimeZone.forID((String) value); } catch (IllegalArgumentException e) { throw new SuperCsvCellProcessorException( "Failed to parse value as a DateTimeZone", context, this, e); } return next.execute(result, context); }
ParseDateTimeZone extends CellProcessorAdaptor implements StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof String)) { throw new SuperCsvCellProcessorException(String.class, value, context, this); } final DateTimeZone result; try { result = DateTimeZone.forID((String) value); } catch (IllegalArgumentException e) { throw new SuperCsvCellProcessorException( "Failed to parse value as a DateTimeZone", context, this, e); } return next.execute(result, context); } }
ParseDateTimeZone extends CellProcessorAdaptor implements StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof String)) { throw new SuperCsvCellProcessorException(String.class, value, context, this); } final DateTimeZone result; try { result = DateTimeZone.forID((String) value); } catch (IllegalArgumentException e) { throw new SuperCsvCellProcessorException( "Failed to parse value as a DateTimeZone", context, this, e); } return next.execute(result, context); } ParseDateTimeZone();  ParseDateTimeZone(final CellProcessor next); }
ParseDateTimeZone extends CellProcessorAdaptor implements StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof String)) { throw new SuperCsvCellProcessorException(String.class, value, context, this); } final DateTimeZone result; try { result = DateTimeZone.forID((String) value); } catch (IllegalArgumentException e) { throw new SuperCsvCellProcessorException( "Failed to parse value as a DateTimeZone", context, this, e); } return next.execute(result, context); } ParseDateTimeZone();  ParseDateTimeZone(final CellProcessor next); Object execute(final Object value, final CsvContext context); }
ParseDateTimeZone extends CellProcessorAdaptor implements StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if (!(value instanceof String)) { throw new SuperCsvCellProcessorException(String.class, value, context, this); } final DateTimeZone result; try { result = DateTimeZone.forID((String) value); } catch (IllegalArgumentException e) { throw new SuperCsvCellProcessorException( "Failed to parse value as a DateTimeZone", context, this, e); } return next.execute(result, context); } ParseDateTimeZone();  ParseDateTimeZone(final CellProcessor next); Object execute(final Object value, final CsvContext context);  }