Class SimpleReportEntry

    • Field Detail

      • systemProperties

        private final java.util.Map<java.lang.String,​java.lang.String> systemProperties
      • source

        private final java.lang.String source
      • name

        private final java.lang.String name
      • elapsed

        private final java.lang.Integer elapsed
      • message

        private final java.lang.String message
    • Constructor Detail

      • SimpleReportEntry

        public SimpleReportEntry()
      • SimpleReportEntry

        public SimpleReportEntry​(java.lang.String source,
                                 java.lang.String name)
      • SimpleReportEntry

        public SimpleReportEntry​(java.lang.String source,
                                 java.lang.String name,
                                 java.util.Map<java.lang.String,​java.lang.String> systemProperties)
      • SimpleReportEntry

        private SimpleReportEntry​(java.lang.String source,
                                  java.lang.String name,
                                  StackTraceWriter stackTraceWriter)
      • SimpleReportEntry

        public SimpleReportEntry​(java.lang.String source,
                                 java.lang.String name,
                                 java.lang.Integer elapsed)
      • SimpleReportEntry

        public SimpleReportEntry​(java.lang.String source,
                                 java.lang.String name,
                                 java.lang.String message)
      • SimpleReportEntry

        protected SimpleReportEntry​(java.lang.String source,
                                    java.lang.String name,
                                    StackTraceWriter stackTraceWriter,
                                    java.lang.Integer elapsed,
                                    java.lang.String message,
                                    java.util.Map<java.lang.String,​java.lang.String> systemProperties)
      • SimpleReportEntry

        public SimpleReportEntry​(java.lang.String source,
                                 java.lang.String name,
                                 StackTraceWriter stackTraceWriter,
                                 java.lang.Integer elapsed)
      • SimpleReportEntry

        public SimpleReportEntry​(java.lang.String source,
                                 java.lang.String name,
                                 StackTraceWriter stackTraceWriter,
                                 java.lang.Integer elapsed,
                                 java.util.Map<java.lang.String,​java.lang.String> systemProperties)
    • Method Detail

      • assumption

        public static SimpleReportEntry assumption​(java.lang.String source,
                                                   java.lang.String name,
                                                   java.lang.String message)
      • ignored

        public static SimpleReportEntry ignored​(java.lang.String source,
                                                java.lang.String name,
                                                java.lang.String message)
      • safeGetMessage

        private static java.lang.String safeGetMessage​(StackTraceWriter stackTraceWriter)
      • getSourceName

        public java.lang.String getSourceName()
        Description copied from interface: ReportEntry
        The class name of the test
        Specified by:
        getSourceName in interface ReportEntry
        Returns:
        A string with the class name
      • getName

        public java.lang.String getName()
        Description copied from interface: ReportEntry
        The name of the test case
        Specified by:
        getName in interface ReportEntry
        Returns:
        A string describing the test case
      • getGroup

        public java.lang.String getGroup()
        Description copied from interface: ReportEntry
        The group/category of the testcase
        Specified by:
        getGroup in interface ReportEntry
        Returns:
        A string
      • getElapsed

        public java.lang.Integer getElapsed()
        Description copied from interface: ReportEntry
        Gets the runtime for the item. Optional parameter. If the value is not set, it will be determined within the reporting subsystem. Some providers like to calculate this value themselves, and it gets the most accurate value.
        Specified by:
        getElapsed in interface ReportEntry
        Returns:
        duration of a test in milli seconds
      • toString

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

        public java.lang.String getMessage()
        Description copied from interface: ReportEntry
        A message relating to a non-successful termination. May be the "message" from an exception or the reason for a test being ignored
        Specified by:
        getMessage in interface ReportEntry
        Returns:
        A string that explains an anomaly
      • equals

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

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

        public java.lang.String getNameWithGroup()
        Description copied from interface: ReportEntry
        A name of the test case together with the group or category (if any exists).
        Specified by:
        getNameWithGroup in interface ReportEntry
        Returns:
        A string with the test case name and group/category, or just the name.