@Test public void testValidInput() { assertEquals(ONE, processor.execute(ONE, ANONYMOUS_CSVCONTEXT)); assertEquals(ONE, processor2.execute(ONE, ANONYMOUS_CSVCONTEXT)); assertEquals(ONE, processorChain.execute(ONE, ANONYMOUS_CSVCONTEXT)); assertEquals(ONE, processorChain2.execute(ONE, ANONYMOUS_CSVCONTEXT)); assertEquals(TWO, processor.execute(TWO, ANONYMOUS_CSVCONTEXT)); assertEquals(TWO, processor2.execute(TWO, ANONYMOUS_CSVCONTEXT)); assertEquals(TWO, processorChain.execute(TWO, ANONYMOUS_CSVCONTEXT)); assertEquals(TWO, processorChain2.execute(TWO, ANONYMOUS_CSVCONTEXT)); assertEquals(THREE, processor.execute(THREE, ANONYMOUS_CSVCONTEXT)); assertEquals(THREE, processor2.execute(THREE, ANONYMOUS_CSVCONTEXT)); assertEquals(THREE, processorChain.execute(THREE, ANONYMOUS_CSVCONTEXT)); assertEquals(THREE, processorChain2.execute(THREE, ANONYMOUS_CSVCONTEXT)); }
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if( !possibleValues.contains(value) ) { throw new SuperCsvConstraintViolationException(String.format( "'%s' is not included in the allowed set of values", value), context, this); } return next.execute(value, context); }
IsIncludedIn extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if( !possibleValues.contains(value) ) { throw new SuperCsvConstraintViolationException(String.format( "'%s' is not included in the allowed set of values", value), context, this); } return next.execute(value, context); } }
IsIncludedIn extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if( !possibleValues.contains(value) ) { throw new SuperCsvConstraintViolationException(String.format( "'%s' is not included in the allowed set of values", value), context, this); } return next.execute(value, context); } IsIncludedIn(final Set<Object> possibleValues);  IsIncludedIn(final Set<Object> possibleValues, final CellProcessor next);  IsIncludedIn(final Object[] possibleValues);  IsIncludedIn(final Object[] possibleValues, final CellProcessor next); }
IsIncludedIn extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if( !possibleValues.contains(value) ) { throw new SuperCsvConstraintViolationException(String.format( "'%s' is not included in the allowed set of values", value), context, this); } return next.execute(value, context); } IsIncludedIn(final Set<Object> possibleValues);  IsIncludedIn(final Set<Object> possibleValues, final CellProcessor next);  IsIncludedIn(final Object[] possibleValues);  IsIncludedIn(final Object[] possibleValues, final CellProcessor next); Object execute(final Object value, final CsvContext context); }
IsIncludedIn extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor,
	DoubleCellProcessor, LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if( !possibleValues.contains(value) ) { throw new SuperCsvConstraintViolationException(String.format( "'%s' is not included in the allowed set of values", value), context, this); } return next.execute(value, context); } IsIncludedIn(final Set<Object> possibleValues);  IsIncludedIn(final Set<Object> possibleValues, final CellProcessor next);  IsIncludedIn(final Object[] possibleValues);  IsIncludedIn(final Object[] possibleValues, final CellProcessor next); Object execute(final Object value, final CsvContext context);  }