public final class CompositeResult extends Object implements IResult
setAsHtml(boolean)
being set to true
then the Memory Analyzer graphical user interface displays each result as a separate tab.
If setAsHtml(boolean)
has been set true or
if the CompositeResult is incorporated into an HTML report then each result appears
as a separate HTML section.Modifier and Type | Class and Description |
---|---|
static class |
CompositeResult.Entry
An individual sub-result
|
Constructor and Description |
---|
CompositeResult(IResult... results)
Build a result out of several others
|
Modifier and Type | Method and Description |
---|---|
void |
addResult(IResult result)
Add one more result
|
void |
addResult(String name,
IResult result)
Add one more result with the given name
|
boolean |
asHtml()
Whether to display the results as HTML.
|
String |
getName()
Get the name of this whole report.
|
List<CompositeResult.Entry> |
getResultEntries()
Get a list of the sub-results
|
ResultMetaData |
getResultMetaData()
Get the metadata (none).
|
List<IResult> |
getResults()
Deprecated.
Use
getResultEntries() instead |
ITestResult.Status |
getStatus()
A combined status
|
boolean |
isEmpty()
See if there are sub-results
|
void |
setAsHtml(boolean asHtml)
Change the HTML setting.
|
void |
setName(String name)
Set the name of this whole report.
|
void |
setStatus(ITestResult.Status status)
Set the combined status
|
public CompositeResult(IResult... results)
results
- a list of resultspublic ResultMetaData getResultMetaData()
getResultMetaData
in interface IResult
@Deprecated public List<IResult> getResults()
getResultEntries()
insteadCompositeResult
public List<CompositeResult.Entry> getResultEntries()
public boolean isEmpty()
public void addResult(IResult result)
result
- the sub-resultpublic void addResult(String name, IResult result)
name
- the nameresult
- the sub-resultpublic ITestResult.Status getStatus()
public void setStatus(ITestResult.Status status)
status
- the new statuspublic boolean asHtml()
public void setAsHtml(boolean asHtml)
asHtml
- true if HTML requiredpublic String getName()
public void setName(String name)
name
- the name of the report