Class DeltaReport


  • public class DeltaReport
    extends Object
    Provides the delta between the reports of two different builds.
    Author:
    Ullrich Hafner
    • Constructor Detail

      • DeltaReport

        public DeltaReport​(edu.hm.hafner.analysis.Report report,
                           History history,
                           int currentBuildNumber)
        Creates a new instance of DeltaReport.
        Parameters:
        report - the current report
        history - the history that will provide the reference build (if there is any)
        currentBuildNumber - the number of the current build, the reference of all new warnings will be set to this number
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Returns whether this report contains issues or not.
        Returns:
        true if the report is empty, false otherwise
      • getReferenceBuildId

        public String getReferenceBuildId()
        Returns the ID of the reference build.
        Returns:
        the reference build ID
      • getAllIssues

        public edu.hm.hafner.analysis.Report getAllIssues()
        Returns all issues of the current build.
        Returns:
        the issues of the current build.
      • getOutstandingIssues

        public edu.hm.hafner.analysis.Report getOutstandingIssues()
        Returns all outstanding issues: i.e. all issues, that are part of the current and reference report.
        Returns:
        the outstanding issues
      • getNewIssues

        public edu.hm.hafner.analysis.Report getNewIssues()
        Returns all new issues: i.e. all issues, that are part of the current report but have not been shown up in the reference report.
        Returns:
        the new issues
      • getFixedIssues

        public edu.hm.hafner.analysis.Report getFixedIssues()
        Returns all fixed issues: i.e. all issues, that are part of the reference report but are not present in the current report anymore.
        Returns:
        the fixed issues
      • getStatistics

        public IssuesStatistics getStatistics()
        Returns statistics for the number of issues (total, new, delta).
        Returns:
        the issues statistics