Package it.unive.lisa.outputs.compare
Interface JsonReportComparer.DiffReporter
-
- Enclosing class:
- JsonReportComparer
public static interface JsonReportComparer.DiffReporter
An object that provides callbacks for reporting differences when comparingJsonReport
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fileDiff(java.lang.String first, java.lang.String second, java.lang.String message)
Callback invoked by aJsonReportComparer
whenever files from different reports but with matching names have different content.void
report(JsonReportComparer.REPORTED_COMPONENT component, JsonReportComparer.REPORT_TYPE type, java.util.Collection<?> reported)
Reports a difference in one of the components of the reports.
-
-
-
Method Detail
-
report
void report(JsonReportComparer.REPORTED_COMPONENT component, JsonReportComparer.REPORT_TYPE type, java.util.Collection<?> reported)
Reports a difference in one of the components of the reports.- Parameters:
component
- theJsonReportComparer.REPORTED_COMPONENT
where the difference was foundtype
- theJsonReportComparer.REPORT_TYPE
indicating what is the difference being reportedreported
- the collection of elements that are part of the report
-
fileDiff
void fileDiff(java.lang.String first, java.lang.String second, java.lang.String message)
Callback invoked by aJsonReportComparer
whenever files from different reports but with matching names have different content.- Parameters:
first
- the complete (i.e. path + file name) pathname of the first filesecond
- the complete (i.e. path + file name) pathname of the second filemessage
- the message reporting the difference
-
-