public static class JUnitReporter.TestResults extends Object
| Constructor and Description |
|---|
TestResults(String className)
Create a new
JUnitReporter.TestResults for the specified class name. |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(JUnitTestListener.Event event)
Add an
Event to the results. |
String |
getClassName()
Obtain the class name the results are for.
|
int |
getErrorCount()
Obtain the number of test errors.
|
Queue<JUnitTestListener.Event> |
getEvents()
Obtain the
Queue of Events fired during the test. |
int |
getFailureCount()
Obtain the number of failed tests.
|
int |
getSkipCount()
Obtain the number of skipped tests.
|
int |
getTestCount()
Obtain the number of tests executed.
|
float |
getTestTime()
Obtain the total number of seconds taken for the tests to execute.
|
void |
incrementErrorCount()
Increment the error count.
|
void |
incrementFailureCount()
Increment the failure count.
|
void |
incrementSkipCount()
Increment the skip count.
|
void |
incrementTestCount()
Increment the test count.
|
void |
setTestTimeSeconds(float seconds)
Set the total number of seconds taken to execute the tests.
|
public TestResults(String className)
JUnitReporter.TestResults for the specified class name.className - the name of the classpublic void addEvent(JUnitTestListener.Event event)
Event to the results.event - the Event to addpublic Queue<JUnitTestListener.Event> getEvents()
Queue of Events fired during the test.Queue of Events fired during the testpublic String getClassName()
public void setTestTimeSeconds(float seconds)
seconds - the total number of seconds taken to
execute the testspublic float getTestTime()
public void incrementTestCount()
public int getTestCount()
public void incrementSkipCount()
public int getSkipCount()
public void incrementFailureCount()
public int getFailureCount()
public void incrementErrorCount()
public int getErrorCount()
An error is when a test method fails due to an error that
is not an AssertionError
Copyright © 2017. All rights reserved.