TestSummary
public
class
TestSummary
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.result.TestSummary |
A class to represent a test summary. Provides a single field for a summary, in addition to a key-value store for more detailed summary. Also provides a place for the summary source to be identified.
Summary
Nested classes | |
|---|---|
class |
TestSummary.TypedString
|
Public constructors | |
|---|---|
TestSummary(TestSummary.TypedString summary)
|
|
TestSummary(String summaryUri)
A convenience constructor that takes the string representation of a URI |
|
Public methods | |
|---|---|
void
|
addKvEntry(String key, TestSummary.TypedString value)
|
void
|
addKvEntry(String key, String value)
|
|
getKvEntries()
|
String
|
getSource()
|
TestSummary.TypedString
|
getSummary()
|
void
|
setSource(String source)
Set the source of the summary, in case a consumer wants to implement a contract with a specific producer |
void
|
setSummary(TestSummary.TypedString summary)
|
void
|
setSummary(String summary)
|
Public constructors
TestSummary
public TestSummary (TestSummary.TypedString summary)
| Parameters | |
|---|---|
summary |
TestSummary.TypedString |
TestSummary
public TestSummary (String summaryUri)
A convenience constructor that takes the string representation of a URI
| Parameters | |
|---|---|
summaryUri |
String: A String representing a URI |
Public methods
addKvEntry
public void addKvEntry (String key,
TestSummary.TypedString value)| Parameters | |
|---|---|
key |
String |
value |
TestSummary.TypedString |
addKvEntry
public void addKvEntry (String key,
String value)| Parameters | |
|---|---|
key |
String |
value |
String |
getKvEntries
publicgetKvEntries ()
| Returns | |
|---|---|
|
|
getSource
public String getSource ()
| Returns | |
|---|---|
String |
|
setSource
public void setSource (String source)
Set the source of the summary, in case a consumer wants to implement a contract with a specific producer
| Parameters | |
|---|---|
source |
String: A String containing the fully-qualified Java class name of the source |
setSummary
public void setSummary (TestSummary.TypedString summary)
| Parameters | |
|---|---|
summary |
TestSummary.TypedString |
setSummary
public void setSummary (String summary)
| Parameters | |
|---|---|
summary |
String |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-10-08 UTC.