|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.junit4osgi.plugin.Report
public class Report
Test report. This class is provides the basics to support several output format.
Field Summary | |
---|---|
protected int |
m_completedCount
Number of ran tests. |
protected long |
m_endTime
Time at the end of the test execution. |
protected int |
m_errorsCount
Number of errors. |
protected int |
m_failuresCount
Number of failures. |
protected long |
m_startTime
Time at the beginning of the test execution. |
protected static String |
NL
New line constant. |
Constructor Summary | |
---|---|
Report()
|
Method Summary | |
---|---|
protected String |
elapsedTimeAsString(long runTime)
Returns the formatted String to display the given double. |
List |
getErrorSources()
Gets tests in error. |
List |
getFailureSources()
Gets failing tests. |
int |
getNumErrors()
|
int |
getNumFailures()
|
int |
getNumTests()
|
protected String |
getStackTrace(junit.framework.Test test,
Throwable e)
Returns the stack trace as String. |
void |
reset()
Reset the report. |
void |
testError(junit.framework.Test test)
Callback called when a test throws an unexpected error. |
void |
testFailed(junit.framework.Test test)
Callback called when a test fails. |
void |
testStarting()
Callback called when a test starts. |
void |
testSucceeded()
Callback called when a test ends successfully. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String NL
protected int m_completedCount
protected int m_errorsCount
protected int m_failuresCount
protected long m_startTime
protected long m_endTime
Constructor Detail |
---|
public Report()
Method Detail |
---|
public List getFailureSources()
public List getErrorSources()
public void testStarting()
public void testSucceeded()
public void testError(junit.framework.Test test)
test
- the test in error.public void testFailed(junit.framework.Test test)
test
- the failing test.public int getNumErrors()
public int getNumFailures()
public int getNumTests()
public void reset()
protected String elapsedTimeAsString(long runTime)
runTime
- the elapsed time
protected String getStackTrace(junit.framework.Test test, Throwable e)
test
- the teste
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |