@Test void testDistributeWithPlainFormatter() throws RedPenException { PlainFormatter formatter = new PlainFormatter(); Map<Document, List<ValidationError>> docErrorsMap = new HashMap<>(); String result = formatter.format(docErrorsMap); assertEquals("", result); }
public abstract void format(PrintWriter printWriter, Map<Document, List<ValidationError>> docErrorsMap) throws RedPenException, IOException;
Formatter { public abstract void format(PrintWriter printWriter, Map<Document, List<ValidationError>> docErrorsMap) throws RedPenException, IOException; }
Formatter { public abstract void format(PrintWriter printWriter, Map<Document, List<ValidationError>> docErrorsMap) throws RedPenException, IOException;  }
Formatter { public abstract void format(PrintWriter printWriter, Map<Document, List<ValidationError>> docErrorsMap) throws RedPenException, IOException;  abstract void format(PrintWriter printWriter, Map<Document, List<ValidationError>> docErrorsMap); abstract String formatError(Document document, ValidationError error); void format(OutputStream outputStream, Map<Document, List<ValidationError>> docErrorsMap); String format(Map<Document, List<ValidationError>> docErrorsMap); String format(Document document, List<ValidationError> errors); }
Formatter { public abstract void format(PrintWriter printWriter, Map<Document, List<ValidationError>> docErrorsMap) throws RedPenException, IOException;  abstract void format(PrintWriter printWriter, Map<Document, List<ValidationError>> docErrorsMap); abstract String formatError(Document document, ValidationError error); void format(OutputStream outputStream, Map<Document, List<ValidationError>> docErrorsMap); String format(Map<Document, List<ValidationError>> docErrorsMap); String format(Document document, List<ValidationError> errors);  }