@Test(expected = SuperCsvConstraintViolationException.class) public void testNotEqual() { assertEquals(EXPECTED_VALUE, processor.execute(EXPECTED_VALUE, ANONYMOUS_CSVCONTEXT)); processor.execute("something else", ANONYMOUS_CSVCONTEXT); }
public Object execute(final Object value, final CsvContext context) { if( UNKNOWN.equals(constantValue) ) { constantValue = value; } else { if( !equals(constantValue, value) ) { if( constantSupplied ) { throw new SuperCsvConstraintViolationException(String.format("'%s' is not equal to the supplied constant '%s'", value, constantValue), context, this); } else { throw new SuperCsvConstraintViolationException(String.format("'%s' is not equal to the previous value(s) of '%s'", value, constantValue), context, this); } } } return next.execute(value, context); }
Equals extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor, DoubleCellProcessor,
	LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { if( UNKNOWN.equals(constantValue) ) { constantValue = value; } else { if( !equals(constantValue, value) ) { if( constantSupplied ) { throw new SuperCsvConstraintViolationException(String.format("'%s' is not equal to the supplied constant '%s'", value, constantValue), context, this); } else { throw new SuperCsvConstraintViolationException(String.format("'%s' is not equal to the previous value(s) of '%s'", value, constantValue), context, this); } } } return next.execute(value, context); } }
Equals extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor, DoubleCellProcessor,
	LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { if( UNKNOWN.equals(constantValue) ) { constantValue = value; } else { if( !equals(constantValue, value) ) { if( constantSupplied ) { throw new SuperCsvConstraintViolationException(String.format("'%s' is not equal to the supplied constant '%s'", value, constantValue), context, this); } else { throw new SuperCsvConstraintViolationException(String.format("'%s' is not equal to the previous value(s) of '%s'", value, constantValue), context, this); } } } return next.execute(value, context); } Equals();  Equals(Object constantValue);  Equals(final CellProcessor next);  Equals(final Object constantValue, final CellProcessor next); }
Equals extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor, DoubleCellProcessor,
	LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { if( UNKNOWN.equals(constantValue) ) { constantValue = value; } else { if( !equals(constantValue, value) ) { if( constantSupplied ) { throw new SuperCsvConstraintViolationException(String.format("'%s' is not equal to the supplied constant '%s'", value, constantValue), context, this); } else { throw new SuperCsvConstraintViolationException(String.format("'%s' is not equal to the previous value(s) of '%s'", value, constantValue), context, this); } } } return next.execute(value, context); } Equals();  Equals(Object constantValue);  Equals(final CellProcessor next);  Equals(final Object constantValue, final CellProcessor next); Object execute(final Object value, final CsvContext context); }
Equals extends CellProcessorAdaptor implements BoolCellProcessor, DateCellProcessor, DoubleCellProcessor,
	LongCellProcessor, StringCellProcessor { public Object execute(final Object value, final CsvContext context) { if( UNKNOWN.equals(constantValue) ) { constantValue = value; } else { if( !equals(constantValue, value) ) { if( constantSupplied ) { throw new SuperCsvConstraintViolationException(String.format("'%s' is not equal to the supplied constant '%s'", value, constantValue), context, this); } else { throw new SuperCsvConstraintViolationException(String.format("'%s' is not equal to the previous value(s) of '%s'", value, constantValue), context, this); } } } return next.execute(value, context); } Equals();  Equals(Object constantValue);  Equals(final CellProcessor next);  Equals(final Object constantValue, final CellProcessor next); Object execute(final Object value, final CsvContext context);  }