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, String value)
void addKvEntry(String key, TestSummary.TypedString 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 A String representing a URI

public TestSummary (TestSummary.TypedString summary)

Public Methods

public void addKvEntry (String key, String value)

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

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

public String getSource ()

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 A String containing the fully-qualified Java class name of the source

public void setSummary (TestSummary.TypedString summary)

public void setSummary (String summary)