to top
public class

TestSummary

extends Object
java.lang.Object
   ↳ com.android.tradefed.result.TestSummary

Class Overview

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
enum TestSummary.Type  
class TestSummary.TypedString  
Public Constructors
TestSummary(String summaryUri)
A convenience constructor that takes the string representation of a URI
TestSummary(TestSummary.TypedString summary)
Public Methods
void addKvEntry(String key, TestSummary.TypedString value)
void addKvEntry(String key, String value)
Map<String, TestSummary.TypedString> 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)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TestSummary (String summaryUri)

A convenience constructor that takes the string representation of a URI

Parameters
summaryUri String: A String representing a URI

public TestSummary (TestSummary.TypedString summary)

Parameters
summary TestSummary.TypedString

Public Methods

public void addKvEntry (String key, TestSummary.TypedString value)

Parameters
key String
value TestSummary.TypedString

public void addKvEntry (String key, String value)

Parameters
key String
value String

public Map<String, TestSummary.TypedString> getKvEntries ()

Returns
Map<String, TestSummary.TypedString>

public String getSource ()

Returns
String

public TestSummary.TypedString getSummary ()

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

public void setSummary (TestSummary.TypedString summary)

Parameters
summary TestSummary.TypedString

public void setSummary (String summary)

Parameters
summary String