@Override protected CheckstyleWarning mapToWarning(final CheckStyleError violation) { CheckstyleWarning warning = new CheckstyleWarning(); warning.setMessage(violation.getMessage()); warning.setSeverity(violation.getSeverity()); return warning; }
protected CheckstyleWarning expectedWarning( String path, int lineNumber, String message, String severity) { final Source bSource = new Source(); bSource.setSourceLineNumber(lineNumber); bSource.setSourceFilePath(path); bSource.setSourceCommit(commit); final CheckstyleWarning b = new CheckstyleWarning(); b.setCommit(commit); b.setSource(bSource); b.setSeverity(severity); b.setMessage(message); return b; }