Package it.unive.lisa.outputs.compare
Interface JsonReportComparer.DiffReporter
-
- Enclosing class:
- JsonReportComparer
public static interface JsonReportComparer.DiffReporterAn object that provides callbacks for reporting differences when comparingJsonReports.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfileDiff(java.lang.String first, java.lang.String second, java.lang.String message)Callback invoked by aJsonReportComparerwhenever files from different reports but with matching names have different content.voidreport(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_COMPONENTwhere the difference was foundtype- theJsonReportComparer.REPORT_TYPEindicating 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 aJsonReportComparerwhenever 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
-
-