Class Report


  • public class Report
    extends java.lang.Object
    A report any algorithm inside the combinatorial test input generation can use to notify the user of events not covered by life cycle reporting.
    • Constructor Summary

      Constructors 
      Constructor Description
      Report​(Report report)
      Copy constructor.
      Report​(java.lang.String resolvableReport, java.util.function.BiFunction<java.lang.String,​java.lang.Object[],​java.lang.String> reportResolver, java.lang.Object... arguments)
      Creates a new report based on a resolvable string.
    • Constructor Detail

      • Report

        public Report​(Report report)
        Copy constructor.
        Parameters:
        report - the report to be copied
      • Report

        public Report​(java.lang.String resolvableReport,
                      java.util.function.BiFunction<java.lang.String,​java.lang.Object[],​java.lang.String> reportResolver,
                      java.lang.Object... arguments)
        Creates a new report based on a resolvable string. The given function should be able to resolve the string to something sensible using the supplied arguments. The string cannot be resolved at the beginning, since ArgumentConverters may be used to convert the given argument, changing the meaning of the report.
        Parameters:
        resolvableReport - a report which can be resolved with the resolver and arguments. Must not be null
        reportResolver - to resolve the report ot a sensible string. Must not be null
        arguments - all arguments used to enrich the report. May be empty, but not null
    • Method Detail

      • report

        public static Report report​(java.lang.String report,
                                    java.lang.Object... arguments)
      • getResolvableReport

        public java.lang.String getResolvableReport()
        Returns:
        the report as supplied to the constructor (not resolved with any arguments)
      • getResolvedReport

        public java.lang.String getResolvedReport()
        Once this method has been called, the report will not be resolved again, so any changing arguments after a call to this method are not respected.
        Returns:
        the report resolved using the given resolver and the arguments.
      • convertArguments

        public void convertArguments​(ArgumentConverter argumentConverter)
        Converts all arguments given to the constructor using the given ArgumentConverter.
        Parameters:
        argumentConverter - an converter to change any argument into an other representation
      • getArguments

        public java.lang.Object[] getArguments()
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object