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
protected SimpleReportEntry(String name)
           
  SimpleReportEntry(String source, String name)
           
  SimpleReportEntry(String source, String name, Integer elapsed)
           
  SimpleReportEntry(String source, String name, StackTraceWriter stackTraceWriter)
           
  SimpleReportEntry(String source, String name, StackTraceWriter stackTraceWriter, Integer elapsed)
           
  SimpleReportEntry(String source, String name, StackTraceWriter stackTraceWriter, Integer elapsed, String message)
           
  SimpleReportEntry(String source, String name, String message)
           
 
Method Summary
 boolean equals(Object o)
           
 Integer getElapsed()
           
 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()
           
 String toString()
           
 
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,
                         String message)

SimpleReportEntry

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

SimpleReportEntry

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

SimpleReportEntry

protected SimpleReportEntry(String name)

SimpleReportEntry

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

SimpleReportEntry

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

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()
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-2012 The Apache Software Foundation. All Rights Reserved.