verify(checkConfig, getPath("usage/InputOneMethodPrivateField.java"), expected);
}
public void testIgnoreFormat() throws Exception
{
final DefaultConfiguration checkConfig =
createCheckConfig(OneMethodPrivateFieldCheck.class);
checkConfig.addAttribute("ignoreFormat", "2$");
final String[] expected = {
"6:24: Field 'SFIELD0' is used in only one method.",
"7:24: Field 'SFIELD1' is used in only one method.",
"9:24: Field 'SFIELD3' is used in only one method.",
"11:17: Field 'mField0' is used in only one method.",