BigIntegerMapper extends KeywordMapper { @Override public String toString() { return toStringHelper(this).add("digits", digits).toString(); } BigIntegerMapper(String field, String column, Boolean validated, Integer digits); @Override String toString(); static final int DEFAULT_DIGITS; final int digits; }
@Test public void testToString() { BigIntegerMapper mapper = bigIntegerMapper().digits(8).validated(false).build("field"); assertEquals("Method #toString is wrong", "BigIntegerMapper{field=field, validated=false, column=field, digits=8}", mapper.toString()); }