org.apache.maven.surefire.report
Class SimpleReportEntry

java.lang.Object
  extended by org.apache.maven.surefire.report.SimpleReportEntry
All Implemented Interfaces:
ReportEntry
Direct Known Subclasses:
CategorizedReportEntry

public class SimpleReportEntry
extends Object
implements ReportEntry

Author:
Kristian Rosenvold

Constructor Summary
  SimpleReportEntry(String source, String name)
           
  SimpleReportEntry(String source, String name, Integer elapsed)
           
  SimpleReportEntry(String source, String name, StackTraceWriter stackTraceWriter, Integer elapsed)
           
protected SimpleReportEntry(String source, String name, StackTraceWriter stackTraceWriter, Integer elapsed, String message)
           
 
Method Summary
 boolean equals(Object o)
           
 Integer getElapsed()
          Gets the runtime for the item.
 String getGroup()
          The group/category of the testcase
 String getMessage()
          A message relating to a non-successful termination.
 String getName()
          The name of the test case
 String getSourceName()
          The class name of the test
 StackTraceWriter getStackTraceWriter()
          The group/category of the testcase
 int hashCode()
           
static SimpleReportEntry ignored(String source, String name, String message)
           
 String toString()
           
static SimpleReportEntry withException(String source, String name, StackTraceWriter stackTraceWriter)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleReportEntry

public SimpleReportEntry(String source,
                         String name)

SimpleReportEntry

public SimpleReportEntry(String source,
                         String name,
                         Integer elapsed)

SimpleReportEntry

protected SimpleReportEntry(String source,
                            String name,
                            StackTraceWriter stackTraceWriter,
                            Integer elapsed,
                            String message)

SimpleReportEntry

public SimpleReportEntry(String source,
                         String name,
                         StackTraceWriter stackTraceWriter,
                         Integer elapsed)
Method Detail

ignored

public static SimpleReportEntry ignored(String source,
                                        String name,
                                        String message)

withException

public static SimpleReportEntry withException(String source,
                                              String name,
                                              StackTraceWriter stackTraceWriter)

getSourceName

public 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 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 String getGroup()
Description copied from interface: ReportEntry
The group/category of the testcase

Specified by:
getGroup in interface ReportEntry
Returns:
A string

getStackTraceWriter

public StackTraceWriter getStackTraceWriter()
Description copied from interface: ReportEntry
The group/category of the testcase

Specified by:
getStackTraceWriter in interface ReportEntry
Returns:
A string

getElapsed

public 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 subsustem. Some providers like to calculate this value themselves, and it gets the most accurate value.

Specified by:
getElapsed in interface ReportEntry

toString

public String toString()
Overrides:
toString in class Object

getMessage

public 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(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.