Class SimpleReportEntry

    • Field Detail

      • systemProperties

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

        private final java.lang.String source
      • sourceText

        private final java.lang.String sourceText
      • name

        private final java.lang.String name
      • nameText

        private final java.lang.String nameText
      • elapsed

        private final java.lang.Integer elapsed
      • message

        private final java.lang.String message
    • Constructor Detail

      • SimpleReportEntry

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

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

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

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

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

        public SimpleReportEntry​(java.lang.String source,
                                 java.lang.String sourceText,
                                 java.lang.String name,
                                 java.lang.String nameText,
                                 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 sourceText,
                                 java.lang.String name,
                                 java.lang.String nameText,
                                 StackTraceWriter stackTraceWriter,
                                 java.lang.Integer elapsed)
      • SimpleReportEntry

        public SimpleReportEntry​(java.lang.String source,
                                 java.lang.String sourceText,
                                 java.lang.String name,
                                 java.lang.String nameText,
                                 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 sourceText,
                                                   java.lang.String name,
                                                   java.lang.String nameText,
                                                   java.lang.String message)
      • ignored

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

        public static SimpleReportEntry withException​(java.lang.String source,
                                                      java.lang.String sourceText,
                                                      java.lang.String name,
                                                      java.lang.String nameText,
                                                      StackTraceWriter stackTraceWriter)
      • 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 source 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.
      • getReportNameWithGroup

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

        private boolean isSystemPropertiesEqual​(SimpleReportEntry en)