StringMapper extends KeywordMapper { @Override public String toString() { return toStringHelper(this).add("caseSensitive", caseSensitive).toString(); } StringMapper(String field, String column, Boolean validated, Boolean caseSensitive); @Override String toString(); static final boolean DEFAULT_CASE_SENSITIVE; final boolean caseSensitive; }
@Test public void testToString() { StringMapper mapper = stringMapper().validated(true).caseSensitive(true).build("field"); assertEquals("Method #toString is wrong", "StringMapper{field=field, validated=true, column=field, caseSensitive=true}", mapper.toString()); }