public class TestResults extends Object
TestResult
instances combined to a TestResults
.Modifier and Type | Class and Description |
---|---|
static interface |
TestResults.ResultCallback
Callback interface for synchronized access to test results in iteration.
|
Constructor and Description |
---|
TestResults() |
Modifier and Type | Method and Description |
---|---|
boolean |
addResult(TestResult result)
Adds a test result to the result list.
|
void |
doWithResults(TestResults.ResultCallback callback)
Provides synchronized access to all test results in iteration.
|
int |
getFailed()
Get number of tests failed.
|
String |
getFailedPercentage()
Calculates percentage of failed tests.
|
int |
getSize()
Gets the total amount of test results.
|
int |
getSkipped()
Get number of skipped tests.
|
String |
getSkippedPercentage()
Calculates percentage of skipped tests.
|
int |
getSuccess()
Get number of tests in success.
|
String |
getSuccessPercentage()
Calculates percentage of success tests.
|
public boolean addResult(TestResult result)
result
- public void doWithResults(TestResults.ResultCallback callback)
callback
- public int getSuccess()
public String getSuccessPercentage()
public int getFailed()
public String getFailedPercentage()
public int getSkipped()
public String getSkippedPercentage()
public int getSize()
Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.