@Test(expected = SuperCsvConstraintViolationException.class) public void testInvalidIntegerInput() { assertEquals(Integer.valueOf(99), processor.execute(Integer.valueOf(99), ANONYMOUS_CSVCONTEXT)); processor.execute(Integer.valueOf(99), ANONYMOUS_CSVCONTEXT); }
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if( !encounteredElements.add(value) ) { throw new SuperCsvConstraintViolationException(String.format("duplicate value '%s' encountered", value), context, this); } return next.execute(value, context); }
Unique extends CellProcessorAdaptor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if( !encounteredElements.add(value) ) { throw new SuperCsvConstraintViolationException(String.format("duplicate value '%s' encountered", value), context, this); } return next.execute(value, context); } }
Unique extends CellProcessorAdaptor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if( !encounteredElements.add(value) ) { throw new SuperCsvConstraintViolationException(String.format("duplicate value '%s' encountered", value), context, this); } return next.execute(value, context); } Unique();  Unique(final CellProcessor next); }
Unique extends CellProcessorAdaptor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if( !encounteredElements.add(value) ) { throw new SuperCsvConstraintViolationException(String.format("duplicate value '%s' encountered", value), context, this); } return next.execute(value, context); } Unique();  Unique(final CellProcessor next); Object execute(final Object value, final CsvContext context); }
Unique extends CellProcessorAdaptor { public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); if( !encounteredElements.add(value) ) { throw new SuperCsvConstraintViolationException(String.format("duplicate value '%s' encountered", value), context, this); } return next.execute(value, context); } Unique();  Unique(final CellProcessor next); Object execute(final Object value, final CsvContext context);  }